Variation of DoubleStream.flatMap ?
forax at univ-mlv.fr
Sun Sep 22 15:06:33 PDT 2013
On 09/23/2013 12:00 AM, Brian Goetz wrote:
> doubleStream.flatMap(...).mapToInt(i -> i)...
don't work because % is not applied on both value.
> 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)
>>> 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).
More information about the lambda-libs-spec-observers