explode (original) (raw)
Tim Peierls tim at peierls.net
Thu Feb 7 10:59:22 PST 2013
- Previous message: explode
- Next message: explode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Feb 7, 2013 at 1:54 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
flatMap is indeed map+flatten, but unfortunately we cannot factor it into two steps because of erasure. (We can't make a method on Stream<Collection> called flatten() that produces a Stream.)
I wasn't suggesting that the steps could be factored, only that a name that suggests the intuitive order of the steps stands a better chance of being understood and used by newbies.
--tim
- Previous message: explode
- Next message: explode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list