]> Repositorios git - scryer-prolog.git/commitdiff
use anonymous variable
authorMarkus Triska <[email protected]>
Wed, 1 Dec 2021 19:54:06 +0000 (20:54 +0100)
committerMarkus Triska <[email protected]>
Wed, 1 Dec 2021 19:54:06 +0000 (20:54 +0100)
src/lib/builtins.pl

index eace0865200299738b004b8ceeba4754310d6bc2..e3bd22a6f52f0daf98ce6c7dfbe8aa5f6b989c35 100644 (file)
@@ -954,7 +954,7 @@ retract_module_clause(Head, Body, Module) :-
     ).
 
 
-first_match_index([Clause | Clauses], Clause, N, N) :-
+first_match_index([Clause | _], Clause, N, N) :-
     !.
 first_match_index([_ | Clauses], Clause, N0, N) :-
     N1 is N0 + 1,