Function.ScalarVector
The scalarFunctionType function returns a single scalar value and calls the vectorFunction with a single set of input arguments, then returns the result. When the scalar function is applied to each ro...
The scalarFunctionType function returns a single scalar value and calls the vectorFunction with a single set of input arguments, then returns the result. When the scalar function is applied to each row of a table of inputs, like in Table.AddColumn, the vectorFunction will only be applied once for all inputs.
The vectorFunction receives a table with columns that match the parameters of scalarFunctionType in name and position. Each row of this table represents the arguments for one call to the scalar function, with columns corresponding to the parameters of scalarFunctionType.
The vectorFunction must return a list of the same length as the input table, where each item matches the result of evaluating the scalar function on the input row of the same position.
The input table is expected to be processed in a streaming manner, so the vectorFunction should output its results as input arrives, handling one chunk of input at a time. In particular, the vectorFunction should not iterate through its input table m