The spec says both arguments and the result are lists.<div>Indeed there is a contradiction with said spec. Isn't that a problem?<br><br><div class="gmail_quote">On 28 March 2013 14:42, Adam Rutkowski <span dir="ltr"><<a href="mailto:hq@mtod.org" target="_blank">hq@mtod.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 28 Mar 2013, at 14:36, Pierre Fenoll wrote:<br>
<br>
> As per the doc, the spec of lists:append/2 is ([term()], [term()]) -> [term()].<br>
><br>
> However, a = lists:append([], a).<br>
<br>
</div>If the spec was ([term()], term()) then maybe ;-)<br>
Also, the documentation (and implementation as well) clearly states it's equivalent to A ++ B.<br>
<span class="HOEnZb"><font color="#888888"><br>
A.</font></span></blockquote></div><br></div>