Created
November 26, 2015 19:23
-
-
Save Saheb/0f611f8947c1afadf346 to your computer and use it in GitHub Desktop.
This file contains 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
def fact(n : Int):Int = n match | |
{ | |
case 1 => 1 | |
case _ => n * fact(n-1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment