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

    Almost works!

    Yes you are absolutely right ! but before i do anything i should sort the list sort/2 and use @< @=> because we compare letters :)
  2. WiseMonk

    Almost works!

    Hi, I'm trying to make this program work :) we have a list common([a,d,a,c,d,a,b],R). and R=a the most common letter! so this is how we probably should find it: common([X|T],E):- last(T,E),%find the last element (b) sum([X|T],E,M1),%find how many times that element repeats itself...

Part and Inventory Search

Back
Top