Skip to content

Instantly share code, notes, and snippets.

@ihodes
Created August 24, 2010 01:18
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 ihodes/546704 to your computer and use it in GitHub Desktop.
Save ihodes/546704 to your computer and use it in GitHub Desktop.
(defn f [n]
(lazy-seq
(loop [n n]
(if (zero? n) []
(cons n (f (dec n))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment