The first argument of Stream:reduce does not need to be an identity in Java

The official documentation of Java claims that the first argument of T Stream::reduce(T identity, BinaryOperator<T> accumulator) must be an identity. Read more

Similar