Skip to content

Instantly share code, notes, and snippets.

@danlamanna
Created August 25, 2014 23:12
Show Gist options
  • Select an option

  • Save danlamanna/5d374e892225ca8508cc to your computer and use it in GitHub Desktop.

Select an option

Save danlamanna/5d374e892225ca8508cc to your computer and use it in GitHub Desktop.
fun factorial(n) = if n = 0
then 1
else n * factorial(n-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment