Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Factorial in Common Lisp
(labels ((factorial (n)
(if (= n 0)
1
(* n (factorial (- n 1))))))
(factorial 5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment