403 |
|
* the given reducer. For example, if the contents are the numbers |
404 |
|
* {@code 1, 2, 3}, and the reducer operation adds numbers, then |
405 |
|
* after invocation of this method, the contents would be {@code 1, |
406 |
< |
* 3, 6} (that is, {@code 1, 1+2, 1+2+3}); |
406 |
> |
* 3, 6} (that is, {@code 1, 1+2, 1+2+3}). |
407 |
|
* @param reducer the reducer |
408 |
|
* @param base the result for an empty array |
409 |
|
* @return this (to simplify use in expressions) |
420 |
|
* 2, 3}, and the reducer operation adds numbers, then after |
421 |
|
* invocation of this method, the contents would be {@code 0, 1, |
422 |
|
* 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value |
423 |
< |
* would be 6 (that is, {@code 1+2+3}); |
423 |
> |
* would be 6 (that is, {@code 1+2+3}). |
424 |
|
* @param reducer the reducer |
425 |
|
* @param base the result for an empty array |
426 |
|
* @return the total reduction |