Wednesday, October 29, 2008

Clojure Golf: fib-seq

Revisiting a classic:
(def fib-seq
(lazy-cat [0 1] (map + fib-seq (rest fib-seq))))

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.