<div><br></div><div>I saw this function in gen_sctp_SUITE.erl :-(</div><br><br><div class="gmail_quote">On Fri, May 20, 2011 at 4:20 PM, Vance Shipley <span dir="ltr"><<a href="mailto:vances@motivity.ca">vances@motivity.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Kannan,<br>
<br>
No, it is not tail recursive. This is:<br>
<br>
%% @spec() -> [term()]<br>
%%<br>
flush() -><br>
flush([]).<br>
<br>
%% @hidden<br>
flush(Msgs) -><br>
receive<br>
Msg -><br>
flush([Msg | Msgs]);<br>
after 17 -><br>
Msgs<br>
end.<br>
<div><div></div><div class="h5"><br>
On Fri, May 20, 2011 at 03:45:19PM +0530, Kannan wrote:<br>
} Is the following list construction an efficient one?<br>
}<br>
} flush() -><br>
} receive<br>
} Msg -><br>
} [Msg|flush()]<br>
} after 17 -><br>
} []<br>
} end.<br>
<br>
</div></div>--<br>
<font color="#888888"> -Vance<br>
</font></blockquote></div><br>