[erlang-questions] Efficiency of a list construction

Kannan vasdeveloper@REDACTED
Fri May 20 12:15:19 CEST 2011


Hi

Is the following list construction an efficient one?

flush() ->
    receive
Msg ->
    [Msg|flush()]
    after 17 ->
    []
    end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110520/cc11d0da/attachment.htm>


More information about the erlang-questions mailing list