Skip to content

Instantly share code, notes, and snippets.

@ezmiller
Created October 2, 2018 14:21
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 ezmiller/8d4389645cec2ed9c17468d40bd44187 to your computer and use it in GitHub Desktop.
Save ezmiller/8d4389645cec2ed9c17468d40bd44187 to your computer and use it in GitHub Desktop.
Recursive Factorial
(defn factorial [n]
(if (= n 1)
1
(* n (factorial (- n 1)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment