~statianzo/sevenlangs

sevenlangs/erlang/countup.erl -rw-r--r-- 115 bytes
2fcd4511Jason Staten day one logic style 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
-module(countup).
-export([to/1]).

to(N) -> to(N, []).

to(0, Prev) -> Prev;
to(N, Prev) -> to(N - 1, [N | Prev]).