Skip to content

Instantly share code, notes, and snippets.

@yarax
Created March 15, 2017 20:06
Show Gist options
  • Save yarax/9cf2151dd277d9e9e6c2bfc8da2ae0e7 to your computer and use it in GitHub Desktop.
Save yarax/9cf2151dd277d9e9e6c2bfc8da2ae0e7 to your computer and use it in GitHub Desktop.
Haskell factorial
factorial 0 = 1 
factorial n = n * factorial (n 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment