Skip to content

Instantly share code, notes, and snippets.

@clementi
Created September 3, 2010 18:11
Show Gist options
  • Save clementi/564297 to your computer and use it in GitHub Desktop.
Save clementi/564297 to your computer and use it in GitHub Desktop.
(defn factorial [n]
(if (= n 0)
1
(* n (factorial (- n 1)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment