Skip to content

Instantly share code, notes, and snippets.

@ponzao
Created September 20, 2010 12:13
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 ponzao/587803 to your computer and use it in GitHub Desktop.
Save ponzao/587803 to your computer and use it in GitHub Desktop.
(letfn [(factorial [n i]
(if (> i 1)
(factorial
(* n i)
(dec i))
n))]
(factorial 1 5))
@ponzao
Copy link
Author

ponzao commented Sep 20, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment