flatMap signature

Brian Goetz brian.goetz at oracle.com
Sun Mar 31 12:59:01 PDT 2013


Or more likely:

flatMap(Function<? super T, ? extends Stream<? extends R>> mapper);

On 3/31/2013 11:10 AM, 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);
>


More information about the lambda-dev mailing list