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

    Displaying all matches.

    You will need to use a grouping predicate such as setof/3 like this: setof(Name/Type/X, relation(Name,Type,X), Set), where Set would be the List of all possible combinations. However I am not too sure how to filter out those possibilities where X is less than the weight specified
  2. surfbluedog

    getting elements into a list

    You can achieve this using the inbuilt setof predicate like this: el(a). el(b). el(c). list(L):- setof(X, el(X), L).
  3. surfbluedog

    List Problems, need help, thank you.

    Not sure i understand exactly what your problem is. I can see what the lists are all about, but where are you stuck at?
  4. surfbluedog

    Counting number of points

    I am writing a bridge program. I am trying to count the number of points present in the hand according the the number of cards in each suit. It works when i do a single query to it, but in t1 refuses to work. I really do not know what else to try. Please please please help, I am desperate. N...

Part and Inventory Search

Back
Top