Skip to main content

Aggregates

FunctionDescriptionMeta
count

n := count(collection)

Count takes a collection or string and returns the number of elements (or characters) in it.

Arguments:
collection (any<string, array[any], object[any: any], set[any]>)

the set/array/object/string to be counted

Returns:
n (number)

the count of elements, key/val pairs, or characters, respectively.

Wasm
max

n := max(collection)

Returns the maximum value in a collection.

Arguments:
collection (any<array[any], set[any]>)

the set or array to be searched

Returns:
n (any)

the maximum of all elements

Wasm
min

n := min(collection)

Returns the minimum value in a collection.

Arguments:
collection (any<array[any], set[any]>)

the set or array to be searched

Returns:
n (any)

the minimum of all elements

Wasm
product

n := product(collection)

Multiplies elements of an array or set of numbers

Arguments:
collection (any<array[number], set[number]>)

the set or array of numbers to multiply

Returns:
n (number)

the product of all elements

Wasm
sort

n := sort(collection)

Returns a sorted array.

Arguments:
collection (any<array[any], set[any]>)

the array or set to be sorted

Returns:
n (array[any])

the sorted array

Wasm
sum

n := sum(collection)

Sums elements of an array or set of numbers.

Arguments:
collection (any<array[number], set[number]>)

the set or array of numbers to sum

Returns:
n (number)

the sum of all elements

Wasm