hg: lambda/lambda/jdk: - ensure null values are retained
Remi Forax
forax at univ-mlv.fr
Wed Dec 5 04:25:46 PST 2012
On 12/05/2012 10:44 AM, Paul Sandoz wrote:
> On Dec 4, 2012, at 3:12 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>
>> On 12/04/2012 03:00 PM, Peter Levart wrote:
>>> Hi Remi, Paul,
>>>
>>> What about vice-versa:
>> Hi Peter,
>> good idea !
> +1
yes, I think two constants are needed, one is NO_VALUE and is used as
init value to detect that an element is the first one because queries
like findFirst or reduce does something different for the first element
and null is a valid first element. The other is NULL_VALUE and is used
only in the parallel code to mask null because concurrent collections
doesn't support null but parallel stream supports null.
>
> Paul.
Rémi
More information about the lambda-dev
mailing list