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

    building a predicate 'is_top'

    Hi, how can i build a predicate to find the top card of a deck of cards. e.g card(desk,a). card(a,b). card(b,c). card(c,d). card(d,e). -------------------------- ?- is_top(T). T = e Yes ?- is_top(d). No
  2. waqas246

    prolog accumulator

    How can i create a prdicate for doubling every second entry of a list and discarding the others using an accumulator? e.g ?-double(['g',o,o,g,l,e],T). T = [o,o,g,g,e,e]

Part and Inventory Search

Back
Top