Created
January 31, 2015 16:23
-
-
Save takahisa/9acfda92d7780d62ea3e to your computer and use it in GitHub Desktop.
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
let _8 = fun _9 -> _9 in | |
let rec _0 _1 _10 = | |
let _11 = fun _3 -> _10 _3 in | |
if _1 < 0 then | |
_11 0 | |
else | |
_0 (_1 - 1) (fun _6 -> _11 (_1 + _6)) | |
in (_0 10) (fun _2 -> _8 _2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
let rec f x = if x < 0 then 0 else x + f(x-1) in f 10;;