Updated State of the Lambda

Brian Goetz brian.goetz at oracle.com
Mon Dec 12 15:55:30 PST 2011


> On Dec 12, 2011, at 3:21 AM, Stephen Colebourne wrote:
>
>> int sum = list.map(e ->  e.size()).reduce(0, (a, b) ->  a+b);

Though this is better stated as:

   int sum = list.map(E::size)
                 .reduce(0, Integer::plus);



More information about the lambda-dev mailing list