[erlang-questions] Wrong advertised spec of lists:append/2
Thu Mar 28 14:53:00 CET 2013
The spec says both arguments and the result are lists.
Indeed there is a contradiction with said spec. Isn't that a problem?
On 28 March 2013 14:42, Adam Rutkowski <> wrote:
> On 28 Mar 2013, at 14:36, Pierre Fenoll wrote:
> > As per the doc, the spec of lists:append/2 is ([term()], [term()]) ->
> > However, a = lists:append(, a).
> If the spec was ([term()], term()) then maybe ;-)
> Also, the documentation (and implementation as well) clearly states it's
> equivalent to A ++ B.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions