Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
OptionalInt |
IntStream.reduce(IntBinaryOperator op)
Performs a reduction on the elements of this stream, using an
associative accumulation function, and returns an
OptionalInt
describing the reduced value, if any. |
int |
IntStream.reduce(int identity,
IntBinaryOperator op)
Performs a reduction on the elements of this stream, using the provided
identity value and an associative accumulation function, and returns the
reduced value.
|
IntStream |
IntStream.scan(IntBinaryOperator accumulator)
Returns a
IntStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
IntStream |
IntStream.scan(int identity,
IntBinaryOperator accumulator)
Returns a
IntStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |