parent
a2b6b78630
commit
5efef24ded
@ -0,0 +1,7 @@
|
||||
-module(countup).
|
||||
-export([to/1]).
|
||||
|
||||
to(N) -> to(N, []).
|
||||
|
||||
to(0, Prev) -> Prev;
|
||||
to(N, Prev) -> to(N - 1, [N | Prev]).
|
Loading…
Reference in new issue