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.

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

Reply via email to