Array Functions
ArrayI2F
converts an array of ints to an array of floats
Syntax:
ArrayI2F(a: [int?]) -> [float?]
Examples:
ArrayI2F([1, null, 3]) = [1.0, null, 3.0]
ArrayMax
returns the maximum element of an array
Syntax:
ArrayMax(a: [float?]) -> float?
Examples:
ArrayMax([1, 3, null, 2]) = 3
ArrayMax([]) is null
ArrayMin
returns the minimum element of an array
Syntax:
ArrayMin(a: [float?]) -> float?
Examples:
ArrayMin([3, 1, null, 2]) = 1
ArrayMin([]) is null
ArraySum
returns the sum of elements of an array
Syntax:
ArraySum(a: [float?]) -> float?
Examples:
ArraySum([3.0, 1, null, 2]) = 6
ArraySum([]) is null
Len
returns the number of elements in a
Syntax:
Len(a: [T]) -> int
Examples:
Len([1, 2]) = 2
Len(["foo"]) = 1