Skip to content

Instantly share code, notes, and snippets.

@viebel
Last active May 7, 2018 05:43
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 viebel/b0b68f35d7f91d001bac3e2e0d300b5e to your computer and use it in GitHub Desktop.
Save viebel/b0b68f35d7f91d001bac3e2e0d300b5e to your computer and use it in GitHub Desktop.
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