[erlang-questions] Wrong advertised spec of lists:append/2

Pierre Fenoll pierrefenoll@REDACTED
Thu Mar 28 14:36:16 CET 2013


Hi,

As per the doc, the spec of lists:append/2 is ([term()], [term()]) ->
[term()].

However, a = lists:append([], a).

Shouldn't it return [a]?

-- 
Regards,
Pierre Fenoll
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130328/d9ed14d7/attachment.htm>


More information about the erlang-questions mailing list