Skip to main content
4 of 4
Commonmark migration

Japt -h, 7 bytes

â £kX â

Try it online!

Explanation:

â £kX â
â         // Get all unique items from the input
  £       // Map X through the results
   kX     //   Remove X from the input
      â   //   Get unique items
-h        // Return the last item
Oliver
  • 7.9k
  • 2
  • 18
  • 38