concept same operation in category java
appears as: same operation

This is an excerpt from Manning's book Modern Java in Action: Lambdas, streams, reactive and functional programming.

This is an excerpt from Manning's book Java 8 in Action: Lambdas, streams, and functional-style programming.
You can further simplify the previous sum example using the reducing collector by using a reference to the sum method of the Integer class instead of the lambda expression you used to encode the same operation. This results in the following: