Skip to content

Instantly share code, notes, and snippets.

@trevorc
Created April 22, 2009 23:51
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 trevorc/100173 to your computer and use it in GitHub Desktop.
Save trevorc/100173 to your computer and use it in GitHub Desktop.
(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