2 ms·
Most of the garbage is because those aren't the closest equivalents. This is the closest Erlang equivalent: fac(0) -> 1; fac(N) -> N * fac(N-1).
by BoorishBears 10y ago
Most of the garbage is because those aren't the closest equivalents.
This is the closest Erlang equivalent:
fac(0) -> 1;
fac(N) -> N * fac(N-1).