Skip to content

Instantly share code, notes, and snippets.

@Flushot
Created February 1, 2013 07:28
Show Gist options
  • Save Flushot/4689906 to your computer and use it in GitHub Desktop.
Save Flushot/4689906 to your computer and use it in GitHub Desktop.
Clojure factorial
(defn fact2 [n]
(if (= n 1)
1
(* n (fact2 (- n 1)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment