For reference, you can see a previous message on the subject I posted
last year:
http://www.mozart-oz.org/pipermail/mozart-users/2005/013856.html
Solve returns a lazy list, so you either need to touch the results, or
use the helper functions:
fun {SolveOne F}
L = {Solve F}
in
if L==nil then nil else [L.1] end
end
fun {SolveAll F}
L = {Solve F}
proc {TouchAll L}
if L==nil then skip else {TouchAll L.2} end
end
in
{TouchAll L}
L
end
IIRC, the call you want for displaying the results is:
{Browse {SolveOne Suit}}
or if you want to see all the results
{Browse {SolveAll Suit}}
Chris Rathman
Alan Oswald wrote:
Thanks, Chris.
I did that (in two ways).
First I simply added the code for Solve from the website. The program
compiled and executed but the output was simply _.
I also compiled the code for Solve to produce an ozf file which I then
linked to my oz program and the result was the same.
What am I missing here?
Alan
------------------------------------------------------------------------
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users