Skip to content

Instantly share code, notes, and snippets.

@l1x
Created May 13, 2015 03:50
Show Gist options
  • Save l1x/e32f3b7e604891010a4a to your computer and use it in GitHub Desktop.
Save l1x/e32f3b7e604891010a4a to your computer and use it in GitHub Desktop.
(def fib (lazy-cat '(0N 1N) (map + (rest fib) fib)))
;(nth fib 1000)
;43466557686937456435688527675040625802564660517371780
;40248172908953655541794905189040387984007925516929592
;25930803226347752096896232398733224711616429964409065
;33187938298969649928516003704476137795166849228875N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment