Skip to content

Instantly share code, notes, and snippets.

@m0smith
Created April 29, 2021 20:41
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 m0smith/d47384761ac98331b28a7e1e7b5b35b0 to your computer and use it in GitHub Desktop.
Save m0smith/d47384761ac98331b28a7e1e7b5b35b0 to your computer and use it in GitHub Desktop.
;; To get factorial of 5
(* 5 4 3 2 1)
;; To get factorial of n: n!
(apply * (range 5 0 -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment