Login
7 branches 0 tags
Ben (X13/Arch) Removed test of :mode result for [file/stat] call 37b8c17 3 years ago 782 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.