I am new to Prolog. I'm just trying to find simple examples. I have this .pl file with these lines:
parent(pam,bob). parent(tom,bob). parent(tom,lio). parent(bob,ann). parent(bob,pat). parent(pat,jim).
After consultation and testing, he shows only the first answer. For example:
5 ?- parent(X,Y). X = pam, Y = bob .
Shouldn't he give all combinations satisfying the parent relation?
Does anyone know what the problem is?
prolog prolog-toplevel
Sahar alsadah
source share