Collection.toArray(IntFunction)

Peter Levart peter.levart at gmail.com
Mon Sep 30 22:57:58 PDT 2013


On 05/30/2013 10:34 AM, Paul Sandoz wrote:
>> >     default <T> T[] toArray(IntFunction<T[]> arrayFactory) {
>> >         return toArray(arrayFactory.apply(size()));
>> >     }
>> >
> This was previously discussed in the lambda EG. It was definitely recognised that the current Collection.toArray methods "stink" and we did not want to propagate the smell to Stream. We got to the point of sorting this out on Stream and suggested after that it may be worth propagating back to Collection but i think it got lost in the noise of other stuff. I will raise this with the EG.
>
>

Hi,

Is this still on the menu or we're out of luck?


Regards, Peter



More information about the lambda-dev mailing list