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)...