> 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);