Skip to content

Instantly share code, notes, and snippets.

@sandy98
Created May 24, 2011 19:11
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 sandy98/989424 to your computer and use it in GitHub Desktop.
Save sandy98/989424 to your computer and use it in GitHub Desktop.
Simple Clojure snippets
(defn factorial [n]
(reduce * (range 1 (inc n))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment