Convert old "into" code to the collectors

Remi Forax forax at univ-mlv.fr
Wed Jan 16 10:16:56 PST 2013


Does anyone can find a better name that toCollection that suggest that 
the supplier taken as parameter can be called more than once ?

Rémi

from lambda-dev:

On 01/16/2013 05:17 PM, Paul Sandoz wrote:
> On Jan 16, 2013, at 5:10 PM, Michael Nascimento <misterm at gmail.com> wrote:
>
>> Since you have an existing instance, you can do:
>>
>> toCollection(() -> propriedades)
>>
> That will break the contract and the results will be undefined when going parallel.
>
> When going parallel multiple instances of the collection will need to be created and those instances will be merged together.
>
> Paul.
>
>> Regards,
>> Michael




More information about the lambda-libs-spec-experts mailing list