One more pass on flatMap/mapMulti
Remi Forax
forax at univ-mlv.fr
Thu Jan 10 09:47:30 PST 2013
On 01/10/2013 04:42 PM, Doug Lea wrote:
> On 01/10/13 10:35, Remi Forax wrote:
>
>>>
>>> mapMulti is still not a great name. How about "explode" ?
>>>
>>
>> yes, explode is better.
>>
>
> ... because that is what will happen with people's memory consumption
> if they don't do the right thing and merge while collecting :-)
I think that the implementation of the pipeline can guarantee that in
the worst case, you don't have more than the memory needed to store the
generated elements for one element (for each core :( ).
>
> -Doug
>
>
Rémi
More information about the lambda-libs-spec-experts
mailing list