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

  1. effatha

    Prolog and List

    Hi. Thanks by your answer. I'm using LPA and not SWI-Prolog. LPA doesn't have a predicate like predsort. However i implemented the follow code: ordena2(L,LO):-findall(t(N,X),(member(X,L),liga2(X,N)),LL), sort(LL,LLS),extrai_bs2(LLS,LO). extrai_bs2([],[])...
  2. effatha

    Prolog and List

    Hi, I'm trying to implement an algorithm in Prolog, in which I have a list L = [b1, b2, b3] and facts of the genre Liga2 (b1, 5), Liga2 (b2, 1), Liga2 (b3, 3). My aim is to sort the list L according to the argument of Liga2, getting as a result L = [b2, b3, b5]. Anyone can help me? Thanks

Part and Inventory Search

Back
Top