fix singleton warning.
This commit is contained in:
parent
78d2960d16
commit
9303efd6d6
@ -135,7 +135,7 @@ find_nth(N, [_|Tail], Elem) :-
|
|||||||
|
|
||||||
|
|
||||||
generate_nth(I, I, [Head|_], Head).
|
generate_nth(I, I, [Head|_], Head).
|
||||||
generate_nth(I, IN, [E|List], El) :-
|
generate_nth(I, IN, [_|List], El) :-
|
||||||
I1 is I+1,
|
I1 is I+1,
|
||||||
generate_nth(I1, IN, List, El).
|
generate_nth(I1, IN, List, El).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user