Created
May 3, 2016 00:49
-
-
Save dreadedsoftware/021b836336b985284041fe6402105277 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
module Recursion | |
//need a keyword for recursion, otherwise boilerplate free | |
//very nice | |
let rec check many acc = | |
if(0 = many) then acc | |
else | |
let a = many - 1 | |
let b = acc + many | |
check a b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment