flatMap signature

Remi Forax forax at univ-mlv.fr
Mon Apr 1 03:32:07 PDT 2013


On 03/31/2013 05:10 PM, Boaz Nahum wrote:
> I have some problems when compiling with flatMap,
>
> *Maybe* the signature should be:
>
> <R> Stream<R> flatMap(Function<? super T, Stream<? extends R>> mapper);
>
> Instead of:
>
> <R> Stream<R> flatMap(Function<T, Stream<? extends R>> mapper);
>

yes, probably,
I will do a pass on the whole API to fix all wildcards,
if you or anybody on this list want to help me,
it would be great.

cheers,
Rémi



More information about the lambda-dev mailing list