QueryReduce
This function reduces the query to a single value.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The query to iterate over | |
|
|
| The function to invoke for each item. The function will be passed 4 arguments: the accumulator, the current item, the current index, and the query. You can alternatively pass a Java Predicate which will only receive the first 2 args. | |
|
|
| The initial value to use for the reduction |
Examples
Related
Last updated