Parts of the reduction

Report a typo

Suppose you have an instance of IntStream named stream. You want to reduce the stream.

stream.reduce(a, (b, c) -> d);

Match the variables and their description.

Match the items from left and right columns
The default result if there are no elements in the stream
The sum of all processed integers so far
the next elements of the stream
The result of the reduction if the stream has elements.
b
d
a
c
___

Create a free account to access the full topic