[mercury-users] cant import int altthough i have the import command...

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Mar 20 15:51:00 AEDT 2004

> Stefan Hinterstoisser, Thursday, 18 March 2004:
> > What I want to
> > get is that the program backtracks all possible values that makes the
> > statement come true (and gives them out).

You will need to use the "solutions" predicate from the "std_util"
library module.

For an example, see the file samples/solutions/all_solutions.m (or

To output more than one variable when using the "solutions" predicate,
you will probably need to group your variables in a tuple.

Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
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