that.
Maybe there should be Reflect.getIterator(obj) and
Reflect.defineIterator(obj, getIterator) for that?
--
View this message in context:
http://mozilla.6506.n7.nabble.com/Creating-and-consuming-custom-iterators-tp289598.html
Sent from the Mozilla - ECMAScript 4 discussion mailing list archive
1 There's no way I can create custom iterator abstraction (How can I can
define MyCustomIterator.prototype[@@iterator] method?).
2. There's no straightforward way to consume iterators in generic way, e.g.
I want to write function that works in similar way as Set constructor, and
accepts any
There will be a public symbol (that you can import from a system module)
that will allow you to do both things.
There's no problem then. Thanks
--
View this message in context:
http://mozilla.6506.n7.nabble.com/Creating-and-consuming-custom-iterators-tp289598p289600.html
Sent from
3 matches
Mail list logo