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) ->
    foos.stream().flatMap(t -> t.somethingThatGivesAStream())

Second question, why "FlatMapper.OfInt" here, but "IntSupplier" etc.

Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com

More information about the lambda-libs-spec-observers mailing list