On Tue, Oct 7, 2014 at 12:50 PM, Tab Atkins Jr. <[email protected]>
wrote:

> On Tue, Oct 7, 2014 at 12:32 PM, Dmitry Soshnikov
> <[email protected]> wrote:
> > I mean, yeah, we can accept and live with this -- aka, yeah why not, it's
> > convenient in place to pre-map, and good for cases when an iterable
> doesn't
> > have the `map`, and it's good for performance. But all the things from
> above
> > stands: it's confusing since doesn't explain whether it's pre- or post-
> map,
> > and takes too much at implementation.
>
> Alternately, you can just consider Foo.from to be the method version
> of a comprehension - you can feed it any iterable and transform the
> value arbitrarily before putting it into the new collection.  That
> does suggest that a filter argument would also be useful, as you've
> said


Yes, the list comprehensions is the thing that came to me in mind as well.

P.S> @all: Also, I apologize I posted to many replies guys above. I wish I
could edit/combine them, but can't in the email. Hope it's not considered
as spam ;)

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

Reply via email to