Created
June 21, 2015 04:46
-
-
Save reu/6e34da671d4a731d10b5 to your computer and use it in GitHub Desktop.
Infinite Fibonacci sequence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def fib-seq | |
((fn fib [a b] (cons a (lazy-seq (fib b (+ b a))))) 1 1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment