flatMap signature

Boaz Nahum boaznahum at gmail.com
Tue Apr 2 07:05:21 PDT 2013


.

>
> I also think that all Supplier<T> should be Supplier<? extends T>.
>
> But why ?

If S extends R:

Supplier<S> ss = ..

S s = stream.collect(ss,..,..)

So also:

R r = stream.collect(ss,)

?

Thanks
Boaz


More information about the lambda-dev mailing list