sum
Computes the sum of all values.
sum(xs:list) -> int
Description
Section titled “Description”The sum
function computes the total of all number values.
xs: list
Section titled “xs: list”The values to aggregate.
Examples
Section titled “Examples”Compute a sum over a group of events
Section titled “Compute a sum over a group of events”from {x: 1}, {x: 2}, {x: 3}summarize n=sum(x)
{n: 6}