[mercury-users] string append
Peter Ross
peter.ross at miscrit.be
Wed Aug 2 19:11:52 AEST 2000
On Wed, Aug 02, 2000 at 12:58:08PM +1000, Peter Schachte wrote:
> On Wed, Aug 02, 2000 at 09:15:08AM +1000, David Overton wrote:
> > As Rob and Ralph have mentioned, there is already a functional version
> > of append (for both strings and lists). You can use it as an infix
> > operator by enclosing it in backquotes, e.g.:
> >
> > S = S0 `append` S1 `append` S2
>
> Out of curiosity, are `backquoted` operators left- or right-associative? Ie,
> if you care about efficiency, do you really have to write
>
It is left associative and has the highest precedence possible (which is
the same as haskell).
Pete
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list