explode
Kevin Bourrillion
kevinb at google.com
Wed Feb 6 16:05:01 PST 2013
On Wed, Feb 6, 2013 at 3:30 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
Stream<U> flatMap(FlatMapper<T, U>)
>
Stream<U> flatMap(Function<T, Stream<U>>)
>
To make sure I understand: would these two behave identically? Would they
imaginably perform comparably?
foos.stream().flatMap((t, consumer) ->
t.somethingThatGivesAStream().forEach(consumer))
foos.stream().flatMap(t -> t.somethingThatGivesAStream())
Second question, why "FlatMapper.OfInt" here, but "IntSupplier" etc.
elsewhere?
--
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/20130206/f473c1b8/attachment.html
More information about the lambda-libs-spec-experts
mailing list