Stream.flatMap signature is not correct
Remi Forax
forax at univ-mlv.fr
Sat Dec 1 09:55:19 PST 2012
On 12/01/2012 06:34 PM, Kevin Bourrillion wrote:
> On Fri, Nov 30, 2012 at 8:44 PM, Remi Forax <forax at univ-mlv.fr
> <mailto:forax at univ-mlv.fr>> wrote:
>
> Stream.flatMap is currently specified as:
>
> <R> Stream<R> flatMap(FlatMapper<? super T, ? extends R> mapper);
>
> but should be:
> <R> Stream<R> flatMap(FlatMapper<? super T, ? super R> mapper);
>
>
> I don't understand. If the mapper produces Numbers how can you return
> a stream of Integers?
sorry, never send a mail Friday evening.
Rémi
More information about the lambda-libs-spec-observers
mailing list