stuartmike00
Programmer
Hi everyone.
How do I define a rule inside a prolog predicate?
for example, i want to have a predicate called "marry(A,B)" that defines "married(A,B)", so that when I ask "married(John, Cris)", it will return true if i've said "marry(John, Cris)" before. How do we do that? Thank you!!
How do I define a rule inside a prolog predicate?
for example, i want to have a predicate called "marry(A,B)" that defines "married(A,B)", so that when I ask "married(John, Cris)", it will return true if i've said "marry(John, Cris)" before. How do we do that? Thank you!!