Function intArrayFunc( expr, inArray )

Description:
Returns an integer array resulting from applying a given function expression element-by-element to an input array. The output array is the same length as the input array.

The supplied expression can use the variable "x" to refer to the corresponding element of the input array, and "i" to refer to its (zero-based) index. The various functions and operators from the expression language can all be used, but it is currently not possible to reference other table column values.

If there is an error in the expression, a blank value (not an array) will be returned.

Parameters:
expr (String)
expression mapping input to output array values
inArray (Object)
input array
Return Value (array of integer):
floating point array with the same number of elements as inArray, or null for a bad expr
Example:
intArrayFunc("-x",sequence(5)) = [0, -1, -2, -3, -4]
Signature:
int[] intArrayFunc(String, Object)