Skip to content

Instantly share code, notes, and snippets.

@takahisa
Created January 31, 2015 16:23
Show Gist options
  • Save takahisa/9acfda92d7780d62ea3e to your computer and use it in GitHub Desktop.
Save takahisa/9acfda92d7780d62ea3e to your computer and use it in GitHub Desktop.
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)
@takahisa
Copy link
Author

let rec f x = if x < 0 then 0 else x + f(x-1) in f 10;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment