Re: setof question

Carlo Capelli <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CABty9wxnjTjBPppZn2zK-aP2yA1iNmsq8RhWp_xPQ4BYGJyJ7Q@mail.gmail.com>
Hi Roelof, try if this one is more useful

?- setof(X, Y^parents(X,Y), Xs).


2014-03-15 11:54 GMT+01:00 Roelof Wobben <[email protected]>:

> Hello,
>
> Im now experimenting with setof.
>
> But I wonder if I can output more then 1 atom.
> As far as I know now I have to do :
>
> setof(X, parents(X,Y), X)
>
> Can I somehow print out both.
> So the output will be something like this:
>
> x = father  y=mother.
>
> Roelof
>
>
> -------------- next part --------------
> HTML attachment scrubbed and removed
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.