erlang fromto(10, 1, -1, fun (X) -> io:format("~B .. ", [X]) end), io:format("Liftoff!~n").
-module(timescnt).
-export([start/0]).
start() ->
fromto(10, 1, -1, fun (X) -> io:format("~B .. ", [X]) end), io:format("Liftoff!~n").
fromto(Stop, Stop, _, Action) -> Action(Stop);
fromto(N, Stop, Increment, Action) -> Action(N), fromto(N + Increment, Stop, Increment, Action).