Created
July 18, 2017 16:53
-
-
Save gautamr/80889fa2f4ecf45cce7d08ad32c0c923 to your computer and use it in GitHub Desktop.
Lazy Fibonacci series in Clojure
This file contains 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
(defn fibo [] (map first (iterate (fn [[a b]] [b (+ a b)]) [0N 1N]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment