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. kuntilanak

    prolog matching from the right

    I have a function called : match_pre([test], K) :- !, append([S|T],_, K), length([S|T],1), test(S) and I have a huge database of predicates which succeeds if S is in the database, example: test(a). test(b). test(z). test(u). test(h). etc...... Now I want to create another function that...
  2. kuntilanak

    if and else and cut

    Say that I have one predicate called test, and I have another predicate called checker, basically here's what I am trying to do in Prolog: test :- checker(T), if checker suceeds(i.e, returns yes) then print bla..bla..bla otherwise checker processes the remaining predicates here ...

Part and Inventory Search

Back
Top