-
Notifications
You must be signed in to change notification settings - Fork 34
New iterator helper and binary iterators #123
Comments
Given that this proposal is stage 2, and your new proposal has no stage, it seems like it would make more sense for your proposal to also include your new Array methods as iterator helper methods, rather than adding them here. |
IMO, It's dependence on https://github.com/tc39/proposal-deiter or https://github.com/tc39/proposal-reverseIterator, doesn't it? BTW: It's just a note |
This proposal isn’t dependent on anything else, afaik. |
I think if |
It seems far more likely that iterator helpers will hit stage 3 first, which means findLast would need to add the helpers it wants. |
how can we iterator from the end (to use |
ah, very good point. |
Even without double-ended iterators |
I'm doubting if it is a good idea to implicitly consume the whole iterator to the end and drop the middle result. It may be better to use |
Traversing an entire sequence and creating an array from the entire sequence have pretty different memory requirements for large sequences, so |
For behaviour that matches |
Yes, |
I have draft a proposol to add two new method(findLast, findLastIndex) into array(typed array) object. And I think it's should be considered in this proposal.
And Iterator does not support some behavior like walk from end to start yet. And so It's might should consider https://github.com/tc39/proposal-deiter too.
Thanks.
The text was updated successfully, but these errors were encountered: