Etherplex

Rick Dillon's home on the net…

Fibonacci

without comments

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.

Written by Rick

October 18th, 2008 at 7:01 pm

Posted in MicroBlog

Leave a Reply