News for hackers. Stuff that matters.
Re:Stack Overflow: Printing 1 to 1000 in C by gurraman on Monday March 14, 2011 @04:26PM (#2324258)
An Erlang solution:

    f() -> f(1).
    f(1001) -> ok;
    f(N) -> io:fwrite("~p~n", [N]), f(N + 1).

There are no comments on this comment yet.