Comprehensions, Where Art Thou?

Andy Wingo wingo at
Mon Aug 11 08:06:37 PDT 2014

On Mon 11 Aug 2014 16:14, Jason Orendorff <jason.orendorff at> writes:

> Where are [methods called .lazy(), .concat(), .map(), .filter(), and
> .flatMap()] defined?  Is it intended that .map() and .flatMap() will
> be defined on all iterables?

I think the intention is to place them on a new Iterator.prototype.  The
notes record that a new Iterator.prototype is to be added to the spec,
though specification of methods is deferred past ES6.


More information about the es-discuss mailing list