Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.27 kb
-module (forloops_benchmark).
-export ([run/0]).
run() ->
% TODO: a better way to test loop?
List = lists:seq(0, 1000000),
loop(List).
loop([], Result) ->
Result;
loop([H|T], Result) ->
loop(T, [H | Result]).
loop([H|T]) ->
loop(T, [H]).
Jump to Line
Something went wrong with that request. Please try again.