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 IamaSherpa 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: *

  • Users: hep84
  • Order by date
  1. hep84

    lists of functions

    umm I got another one for ya man... last_element(+List, -LastElement) Succeeds with LastElement equal to the last element of List. If List is not a list or is empty, it fails. last_element([X], X). last_element([_|T], X) :- last_element(T, X). any suggestions? :/
  2. hep84

    lists of functions

    Thank you so much dude. I understand it way better now. It makes more sense than ever. I appreciate your time.
  3. hep84

    lists of functions

    sum(+List, -Sum) Succeeds with Sum equal to the sum of all the entries on list. The empty list has sum 0, and if List is not a list of numeric values, sum fails or results in an error. It is nearly close but I got this so far... sum([], 0) :- !. sum(N, N) :- number(N), !. sum([H|T], N) :-...
  4. hep84

    lists of functions

    ty haleen for help but can u explain a little bit for me please if thats not a problem.
  5. hep84

    lists of functions

    is there a way for u to do it? I am clueless still. :/
  6. hep84

    lists of functions

    I got that basically I know but what I mean is that I couldn't figure out how to do this basically.
  7. hep84

    lists of functions, confused

    sorry for the double post.
  8. hep84

    lists of functions, confused

    hey guys, I am currently a noob to swi-prolog. I've been trying to figure out bunch of things and I was working on some questions in the beginner book I bought... I got stuck on some of them. I hope to get some help in here since this is one of the best ones I found. remove_duplicates(+List...
  9. hep84

    lists of functions

    hey guys, I am currently a noob to swi-prolog. I've been trying to figure out bunch of things and I was working on some questions in the beginner book I bought... I got stuck on some of them. I hope to get some help in here since this is one of the best ones I found. remove_duplicates(+List...

Part and Inventory Search

Back
Top