On Aug 28, 2013, at 17:02 , Forbes Lindesay <[email protected]> wrote:

> It would be nice from a readability point of view if `iteratable.toArray()` 
> could always be used as a substitute for `Array.from(iteratable)`.  Is there 
> a way that could be neatly achieved?

For me, [ ... iterable ] would be good enough. Relatively readable and concise.


> It would also be nice if methods like `.map` and `.filter` existed on 
> iteratables.  C# does this via the concept of extension methods, but I wonder 
> whether something similar could be achieved here, at least in the case of 
> built in iteratables?

It would be lovely to have a module with tool functions for this, similar to 
Python’s itertools.
http://docs.python.org/3/library/itertools.html

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to