Variation of DoubleStream.flatMap ?
Brian Goetz
brian.goetz at oracle.com
Sun Sep 22 15:00:07 PDT 2013
So:
doubleStream.flatMap(...).mapToInt(i -> i)...
On Sep 22, 2013, at 4:53 PM, Remi Forax wrote:
> On 09/22/2013 11:46 PM, Brian Goetz wrote:
>> So, it seemed the Object -> int versions were going to be far more common than the int -> Object versions (can you think of a lot of examples?) and, if you need, you can always go intStream.boxed().flatMap().
>
> I need double -> stream of int, exactly, I need this lambda
> value -> IntStream.of((int)value, ((int)(value*10))%10)
>
> Rémi
>
>>
>> On Sep 22, 2013, at 12:43 PM, Remi Forax wrote:
>>
>>> I wonder why there is only one variation of flatMap on DoubleStream (and other primitive stream).
>>>
>>> Rémi
>>>
>
More information about the lambda-libs-spec-experts
mailing list