Purpose of third argument to ‘reduce’ function in Java 8 functional programming

Are you talking about this function? reduce <U> U reduce(U identity, BiFunction<U,? super T,U> accumulator, BinaryOperator<U> combiner) Performs a reduction on the elements of this stream, using the provided identity, accumulation and combining functions. This is equivalent to: U result = identity; for (T element : this stream) result = accumulator.apply(result, element) return result; but … Read more