explode
Joe Bowbeer
joe.bowbeer at gmail.com
Thu Feb 7 11:13:45 PST 2013
I think flatmap is odd and I like Tim's suggestion. However if there is a
choice between two odd names then I prefer flatmap because I've encountered
it before in various functional contexts.
On Feb 7, 2013 10:59 AM, "Tim Peierls" <tim at peierls.net> wrote:
> 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<T>> called flatten() that produces a Stream<T>.)
>>
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130207/24bb4916/attachment.html
More information about the lambda-libs-spec-experts
mailing list