precept.accumulators

accum

all

average

by-fact-id

(by-fact-id)(by-fact-id k)

Custom accumulator.

Like acc/all ewxcept sorts tuples by :t slot (fact-id). Since fact ids are created sequentially this sorts facts by order they were created. Returns list of facts. Optional k arg maps k over facts.

count

distinct

grouping-by

list-of

(list-of fact-f)(list-of fact-f list-f)

Custom accumulator.

Calls fact-f on facts being accumulated. If provided, calls list-f on accumulated list result.

max

min

reduce-to-accum

sum