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)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.