364 |
|
* the given reducer. For example, if the contents are the numbers |
365 |
|
* {@code 1, 2, 3}, and the reducer operation adds numbers, then |
366 |
|
* after invocation of this method, the contents would be {@code 1, |
367 |
< |
* 3, 6} (that is, {@code 1, 1+2, 1+2+3}); |
367 |
> |
* 3, 6} (that is, {@code 1, 1+2, 1+2+3}). |
368 |
|
* @param reducer the reducer |
369 |
|
* @param base the result for an empty array |
370 |
|
* @return this (to simplify use in expressions) |
381 |
|
* 2, 3}, and the reducer operation adds numbers, then after |
382 |
|
* invocation of this method, the contents would be {@code 0, 1, |
383 |
|
* 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value |
384 |
< |
* would be 6 (that is, {@code 1+2+3}); |
384 |
> |
* would be 6 (that is, {@code 1+2+3}). |
385 |
|
* @param reducer the reducer |
386 |
|
* @param base the result for an empty array |
387 |
|
* @return the total reduction |