Skip to content

Instantly share code, notes, and snippets.

@llasram
Forked from anonymous/gist:1677918
Created January 25, 2012 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llasram/1678269 to your computer and use it in GitHub Desktop.
Save llasram/1678269 to your computer and use it in GitHub Desktop.
(#(let
[s (fn !
([a] a)
([a & more] (for [x a y (apply ! more) :while (>= x y) :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