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!

bestEleven

Status
Not open for further replies.

Jonaruto

Technical User
Apr 5, 2010
1
0
0
I got a list of numbers, I want to get the first 1 numbers.
How do I do that.
Here is what I tried:
%sort and reverse
sortapp(L2):-
findall(X,player(_,_,_,_,X,_),L),
sort(L,L1),
reverse(L1,L2).


%this is what I need help with:
bestEleven(Name):-
sortapp(L),
I is 0,
nth0(I,L,X),
player(Name,_,_,_,X,_).

so please fix this if you can =[
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top