How to stop repetitions in rules in prolog
- by Pradeep
In my prolog rule
marriedcouple(X,Y) :-
parent((X,Z),bornin(_)),
parent((Y,Z),bornin(_)),
female(X),male(Y);
male(X),female(Y),
different(X,Y).
when a parent has two kids, the couple shows twice. How can we prevent this ?