<div dir="ltr">Hi,<div><br></div><div style>In the document :<a href="http://www.erlang.org/doc/man/lists.html#append-2">http://www.erlang.org/doc/man/lists.html#append-2</a></div><div style>It says:</div><div style>append(List1, List2) -> List3, List1 = List2 = List3 = [T], T = term.</div>
<div style><br></div><div style>But considering the following behavior, it does not look correct:</div><div style><br></div><div style><div>1> [] ++ undef.</div><div>undef</div><div>2> undef ++ [].</div><div>** exception error: bad argument</div>
<div> in operator ++/2</div><div> called as undef ++ []</div><div>3> [a,b] ++ undef.</div><div>[a,b|undef]</div><div>4> </div><div><br></div><div><br></div><div style>Thoughts ?</div><div style><br></div>
<div style><br></div><div style>Thank you</div><div style>Yoshihiro</div></div><div style><br></div></div>