Created
November 20, 2014 17:25
-
-
Save marchdown/d89c273506f120c9f7ba to your computer and use it in GitHub Desktop.
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
user=> (def lazy-fib (lazy-cat [0 1] (map + lazy-fib (rest lazy-fib)))) | |
#'user/lazy-fib | |
user=> (count (take 200 lazy-fib)) | |
ArithmeticException integer overflow clojure.lang.Numbers.throwIntOverflow (Numbers.java:1424) | |
user=> (count (take 200 lazy-fib)) | |
93 | |
user=> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment