T
- The type contained in the object.public interface Reducible<T>
Modifier and Type | Method and Description |
---|---|
<V> V |
reduce(V unit,
Fn2<? super V,? super T,? extends V> reducer)
Reduce the element(s) into one value.
|
<V> V reduce(V unit, Fn2<? super V,? super T,? extends V> reducer)
unit
- The start value for the reduction. The unit should in general (but
is not required to) be such that when combined with any element in
the iterable, yield the iterable's element.reducer
- the function which first argument is the accumulated reduction
througout the iteration, and second argument the value to include
in the reduction.Copyright © 2016. All Rights Reserved.