Skip to content

Instantly share code, notes, and snippets.

@reu
Created June 21, 2015 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reu/6e34da671d4a731d10b5 to your computer and use it in GitHub Desktop.
Save reu/6e34da671d4a731d10b5 to your computer and use it in GitHub Desktop.
Infinite Fibonacci sequence
(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