Skip to content

Instantly share code, notes, and snippets.

@viebel viebel/factorial.lisp
Last active May 7, 2018

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