Map: filter/map and more

Tab Atkins Jr. jackalmage at gmail.com
Thu Nov 20 10:58:59 PST 2014


On Thu, Nov 20, 2014 at 10:42 AM, Domenic Denicola <d at domenic.me> wrote:
> From: Tab Atkins Jr. [mailto:jackalmage at gmail.com]
>> I presume that .collect() expects an iterator of [k,v] pairs or something?  Also: this is the first I've heard of .collect().  I presume that'll show up in the spec?
>
> The idea of .collect() is that when the iterator is created, it's told how to collect; in this case it would be using `new Map` I think.

Interesting idea, but I'm not sure how it's supposed to work in
practice.  Is this metadata exposed somehow, so you can pass it along
to new iterators you create in custom iterator-algebra methods?  How
does this work with iterator-algebra methods implemented as
generators?

~TJ


More information about the es-discuss mailing list