Iteration over lists

Bjorn Gustavsson bjorn@REDACTED
Mon Mar 20 08:31:38 CET 2006

Richard Carlsson <richardc@REDACTED> writes:

> Also, if each iteration does more work than just calling
> integer_to_list, recursing, and consing up a new element,
> it could make the stack frame size bigger, which could
> significantly lower the break-even point in favour of the
> tail recursive version with reverse at the end.


> (This is of course assuming that the Beam compiler does not
> use stack trimming techniques, but I don't think it does.)

It doesn't.

Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the erlang-questions mailing list