From: Markus Triska Date: Tue, 5 Sep 2023 17:42:55 +0000 (+0200) Subject: FIXED: documentation of countall/2 (#1976) X-Git-Tag: remove~113^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=1967518fa2c5a1a625fc88f47a0f27e88f6e663d;p=scryer-prolog.git FIXED: documentation of countall/2 (#1976) --- diff --git a/src/lib/iso_ext.pl b/src/lib/iso_ext.pl index b6863487..2f1286f0 100644 --- a/src/lib/iso_ext.pl +++ b/src/lib/iso_ext.pl @@ -358,10 +358,10 @@ call_nth_nesting(C, ID) :- bb_put(ID, 0), bb_put(i_call_nth_counter, C). -%% countall(Goal, N). +%% countall(G_0, N). % -% countall(Goal, N) counts all solutions of Goal and unifies N with -% this number of solutions. This predicate always succeeds once. +% countall(G_0, N) is true iff N unifies with the total number of +% answers of call(G_0). :- meta_predicate(countall(0, ?)).