Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Created May 7, 2012 18:20
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 MichaelDrogalis/2629447 to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/2629447 to your computer and use it in GitHub Desktop.
(defn inf-nums-from [n]
"A sequence of n to infinity."
(lazy-seq (cons n (inf-nums-from (inc n)))))
(take 10 (inf-nums-from 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment