TinyBase logoTinyBase

Aggregate

The Aggregate type describes a custom function that takes an array of Cell values and returns an aggregate of them.

(
  cells: Cell[],
  length: number,
): ResultCell
TypeDescription
cellsCell[]

The array of Cell values to be aggregated.

lengthnumber

The length of the array of Cell values to be aggregated.

returnsResultCell

The value of the aggregation.

There are a number of common predefined aggregators, such as for counting, summing, and averaging values. This type is instead used for when you wish to use a more complex aggregation of your own devising.

Since

v2.0.0