[m-users.] About append(out, in, in) for lists and strings
dram.wang at gmail.com
Fri Feb 3 17:56:06 AEDT 2017
In Mercury reference 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users