skip/limit in parallel context
Remi Forax
forax at univ-mlv.fr
Thu Dec 13 09:31:52 PST 2012
On 12/13/2012 03:38 PM, Paul Sandoz wrote:
> On Dec 13, 2012, at 3:12 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>> the main issue here is that, with a sequential stream, you can write
>>
>> .reduce(0L, (count, t) -> count + 1L, null)
>>
> Yeah, thats a bug, should throw an NPE.
My point was more that the last parameter is not used at all with a
sequential stream
.reduce(0L, (count, t) -> count + 1L, Something::stupid)
will work too.
>
> Paul.
>
Rémi
More information about the lambda-dev
mailing list