[erlang-bugs] Document of lists:append/2
Yoshihiro Tanaka
hirotnkg@REDACTED
Mon Feb 10 04:30:19 CET 2014
Hi,
In the document :http://www.erlang.org/doc/man/lists.html#append-2
It says:
append(List1, List2) -> List3, List1 = List2 = List3 = [T], T = term.
But considering the following behavior, it does not look correct:
1> [] ++ undef.
undef
2> undef ++ [].
** exception error: bad argument
in operator ++/2
called as undef ++ []
3> [a,b] ++ undef.
[a,b|undef]
4>
Thoughts ?
Thank you
Yoshihiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140209/a800ed27/attachment.htm>
More information about the erlang-bugs
mailing list