Fibonacci
By far the most brain-bendingly elegant definition of all the Fibonacci numbers I have ever encountered:
(def fibs (lazy-cat '(1 2) (map + fibs (drop 1 fibs))))
Found over an the clojure-euler wiki.
You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
