3 lines
102 B
Erlang
3 lines
102 B
Erlang
|
|
9> timer:tc(fun (X) -> lists:foreach(fun(Y) -> Y*Y end, lists:seq(1,X)) end, [1000000]).
|
||
|
|
{2293844,ok}
|