Array Functions
ArrayMax
returns the maximum element of an array
Syntax:
ArrayMax(a []any) -> number
Examples:
ArrayMax([1, 3, null, 2]) = 3
ArrayMax([]) is null
ArrayMin
returns the minimum element of an array
Syntax:
ArrayMin(a []any) -> number
Examples:
ArrayMin([3, 1, null, 2]) = 1
ArrayMin([]) is null
ArraySum
returns the sum of elements of an array
Syntax:
ArraySum(a []any) -> number
Examples:
ArraySum([3, 1, null, 2]) = 6
ArraySum([]) is null
Len
returns the number of elements in a
Syntax:
Len(a []any) -> int
Examples:
Len([1, 2]) = 2
Len(["foo"]) = 1