explode (original) (raw)
Kevin Bourrillion kevinb at google.com
Wed Feb 6 16:05:01 PST 2013
- Previous message: explode
- Next message: explode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Feb 6, 2013 at 3:30 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
Stream flatMap(FlatMapper<T, U>)
Stream flatMap(Function<T, Stream>)
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
- Previous message: explode
- Next message: explode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list