]> Repositorios git - scryer-prolog.git/commitdiff
add sumlist/2 to lists.pl
authorMark Thom <[email protected]>
Sat, 30 Nov 2019 21:26:15 +0000 (14:26 -0700)
committerMark Thom <[email protected]>
Sat, 30 Nov 2019 21:26:15 +0000 (14:26 -0700)
src/prolog/lib/lists.pl

index ae20740363f3f115d38b75fd617360501f48b55e..f3a4ef6b2dd451df0e0e92944ecb7ea526095faa 100644 (file)
@@ -104,7 +104,7 @@ maplist(Cont, [E1|E1s], [E2|E2s], [E3|E3s], [E4|E4s], [E5|E5s], [E6|E6s], [E7|E7
 sumlist_([], S, S).
 sumlist_([N|Ns], S, S0) :-
     S1 is S0 + N,
-    sumlist(Ns, S, S1).
+    sumlist_(Ns, S, S1).
 
 sumlist(Ns, S) :-
     must_be(list, Ns),