explode (was: Stream method survey responses) (original) (raw)
Kevin Bourrillion kevinb at google.com
Mon Feb 4 12:52:17 PST 2013
- Previous message: explode (was: Stream method survey responses)
- Next message: explode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Only a quick question first:
On Mon, Feb 4, 2013 at 12:37 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
The original API had only:
Stream flatMap(MultiFunction<T,U> mf) where MultiFunction was (T, Consumer) -> void. If users already had a Collection lying around, they had to iterate it themselves: (element, sink) -> { for (U u : findCollection(t)) sink.accept(u); }
Could that simply be (t, sink) -> findCollection(t).forEach(sink) ?
-- Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
- Previous message: explode (was: Stream method survey responses)
- Next message: explode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list