[m-users.] About append(out, in, in) for lists and strings

Xin Wang dram.wang at gmail.com
Fri Feb 3 17:56:06 AEDT 2017

In Mercury reference[1] there is an example shows that a seperate
definition can be used to make `append(out, in, in)` more efficient.

But `libraray/list.m` and `library/string.m` both do not define
`append(out, in, in)` mode, instead `remove_suffix/3`is recommended to be
used, because of determinism and efficiency issues. That seems to
contradict with the reference.


Xin Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20170203/98989801/attachment.html>

More information about the users mailing list