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!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.