[mercury-users] semidet vs unique updating

Ralph Becket rafe at cs.mu.OZ.AU
Wed Oct 17 16:16:30 AEST 2001


Michael Day, Wednesday, 17 October 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...

Beg your pardon.

If there was a queue__det_get/3 predicate then, along with
queue__is_empty/1, there'd be no problem.

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