Skip to content

Instantly share code, notes, and snippets.

Created January 25, 2012 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/1677918 to your computer and use it in GitHub Desktop.
Save anonymous/1677918 to your computer and use it in GitHub Desktop.
(#(let
[s (fn !
([a] a)
([a & more] (for [x a y (apply ! more) :when (= x y)] x)))]
(first (apply s %&))) [1 2 100] [3 5 100] (range))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment