10 ms·
One of those times when I hugely miss languages with pattern matching/guards. fact(1) = 1 fact(n) = n * fact(n-1) Seems much more readable to me.
by kolektiv 16y ago
One of those times when I hugely miss languages with pattern matching/guards.
fact(1) = 1
fact(n) = n * fact(n-1)
Seems much more readable to me.