[erlang-questions] Tail recursive tests
Pierpaolo Bernardi
olopierpa@REDACTED
Wed May 28 18:21:10 CEST 2008
On 5/28/08, Per Melin <per.melin@REDACTED> wrote:
> >From time to time I find that I want to write something like:
>
> foo([]) -> true;
> foo([H|T]) -> bar(H) andalso foo(T).
>
> Which works, but is not tail recursive. Is there any reason why it couldn't be?
I agree with you.
see http://www.erlang.org/pipermail/erlang-questions/2003-March/008107.html
and preceding and following messages, for a previous discussion.
Cheers
P.
More information about the erlang-questions
mailing list