Login
7 branches 0 tags
Ben (Win10) Fixed exception handling closures not being poped from the stack 8b1fa21 3 years ago 631 Commits
nujel / benchmark / for / erlang.erl
#!/usr/bin/env escript
-mode(compile).

forLoop(Ret,0) -> Ret;
forLoop(Ret,I) -> forLoop(Ret + I, I - 1).

main([]) ->
    io:format("The result is: ~w~n",[forLoop(0,10000000-1)]),
    0.