Login
7 branches 0 tags
Benjamin Vincent Schulenburg Fixed *module* not being bound for fs modules 8f4a5ef 3 years ago 874 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.