Created
August 25, 2017 11:31
-
-
Save wklm/40e8aa939af8ff269a1fdfb60b2f1a7c to your computer and use it in GitHub Desktop.
ocaml SO
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
let rec factorial (number : int) = | |
if number >= 1 then number * factorial (number - 1) | |
else 1 | |
print_int (factorial 242);; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment