Stream.flatMap signature is not correct (original) (raw)
Kevin Bourrillion kevinb at google.com
Sat Dec 1 09:34:28 PST 2012
- Previous message: Stream generators
- Next message: Stream.flatMap signature is not correct
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Nov 30, 2012 at 8:44 PM, Remi Forax <forax at univ-mlv.fr> wrote:
Stream.flatMap is currently specified as:
Stream flatMap(FlatMapper<? super T, ? extends R> mapper); but should be: Stream flatMap(FlatMapper<? super T, ? super R> mapper);
I don't understand. If the mapper produces Numbers how can you return a stream of Integers?
-- Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20121201/bbda691e/attachment.html
- Previous message: Stream generators
- Next message: Stream.flatMap signature is not correct
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-experts mailing list