Yes, thank you. By the way, I appreciate your textbook "The Craft of Prolog."

Robert Buckley

On Wed, Oct 5, 2016 at 3:52 PM, Richard A. O'Keefe <ok@cs.otago.ac.nz> wrote:


On 5/10/16 4:47 AM, D.R. Buckley, Jr. wrote:

Z <- {Var & Dec & Pred} :-
findall(Var, maplist(call, [Dec, Pred]), Z).

What happens if you write

Z <- {Var & Dec & Pred} :-
�� �� findall(Var, (Dec, Pred), Z).

This works for me:

?- X = member(Z, [1,2,3,4]), Y = member(Z, [2,4,6,8]),
�� ��findall(Z, (X, Y), L).

L = [2,4],
X = member(Z,[1,2,3,4]),
Y = member(Z,[2,4,6,8]) ?



_______________________________________________
Ciao-users mailing list
Ciao-users@clip.dia.fi.upm.es
http://cliplab.org/cgi-bin/mailman/listinfo/ciao-users