Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stuartmike00

    Defining a rule inside a predicate

    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!!

Part and Inventory Search

Back
Top