ArrayReduce
Run the provided udf over the array to reduce the values to a single output
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The array to reduce | |
|
|
| The function to invoke for each item. The function will be passed 3 arguments: the accumulator, the current item, and the current index. The function should return the new accumulator value. | |
|
|
| The initial value of the accumulator |
Examples
Related
Last updated