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: avish12
  • Order by date
  1. avish12

    Index of Element

    Thanks again :)
  2. avish12

    Index of Element

    That's great! You've helped me a lot, I definitely starting to feel like I understand logic programming's concepts. Thanks a lot!
  3. avish12

    Index of Element

    Well, I seem to need more help in the problem which is the reason for my first question. I want to write remove_elem(L, X, Ans), where Ans will get the list L after all element X's occurrences has been removed from it. for example: remove_elem([6,5], 5, Ans) will cause Ans = [6]. I don't have...
  4. avish12

    Index of Element

    Wow do I feel stupid... I have seen this predicate but didn't make the connection that if Index is left without a concrete value, it will return with the answer... Thanks :)
  5. avish12

    Index of Element

    Hi, I'm new here and with Prolog. I have done some searching for several hours, including going over some useful threads in this forum, yet did not manage to find an example of the somewhat simple task in arrays: find the index of a given element in a list, meaning: index(List, Element, Index)...

Part and Inventory Search

Back
Top