~statianzo/sevenlangs

5efef24ded68938e12acb25e2d5169715b05593b — Jason Staten 1 year, 10 months ago a2b6b78
count to 10 recursively
1 files changed, 7 insertions(+), 0 deletions(-)

A erlang/countup.erl
A erlang/countup.erl => erlang/countup.erl +7 -0
@@ 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]).
\ No newline at end of file