[mercury-users] semidet vs unique updating

Michael Day mikeday at bigpond.net.au
Wed Oct 17 15:46:14 AEST 2001


> What you really want in this case is
>
> :- func queue__get(queue(T)) = maybe(T).
> :- mode queue__get(ui) = out is det.
>
> which could be used in if-then-elses.

But I also need the resulting queue...

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