Created
March 15, 2017 20:06
-
-
Save yarax/9cf2151dd277d9e9e6c2bfc8da2ae0e7 to your computer and use it in GitHub Desktop.
Haskell factorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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