Open
Description
I did a search in this repository about aggregate_all/3
. But
I didn't find it. Is this correct that Ciao Prolog has no
library(aggregate) from SICStus Prolog?
An Aggregation Operator for Data-Base-Style Queries
https://sicstus.sics.se/sicstus/docs/4.6.0/html/sicstus/lib_002daggregate.html
I am somehow used to it since it also found its way into
SWI-Prolog. Would it be possible to support the same in
Ciao Prolog as well? Its not urgent, just a feature request.
Here is an example test case:
?- aggregate_all(count, (between(1,1000,N), N mod 13 =:= 0), C).
C = 76.
?- aggregate_all(sum(N), (between(1,1000,N), N mod 13 =:= 0), C).
C = 38038.