3 ms·
Tail calls have a collector that accumulates the result, very similar pattern as in the example. It's an optimization in LISP and similar languages.
by Beltiras 4y ago
Tail calls have a collector that accumulates the result, very similar pattern as in the example. It's an optimization in LISP and similar languages.