[mercury-users] uniqueness

Michael Day mikeday at corplink.com.au
Fri Dec 1 13:27:01 AEDT 2000


> :- pred pack(a, b, c, structure).
> :- mode pack(di, di, di, uo) is det.
>
> pack(A, B, C, s(A, B, C)).

Oh and the inverse of this, unpack, does not appear to suffer from such a
restriction and requires no copy.

Michael

--------------------------------------------------------------------------
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