-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor retro()
, clean up iterators
#361
Conversation
d3e17fb
to
c8491cb
Compare
The RTD failure seems to be unrelated:
|
aba434c
to
4a96ee3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! No idea what is going on with RTD.
Same thing is happening in |
retro()
, clean up iteratorsretro()
, clean up iterators
4a96ee3
to
0a8a743
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
const it = (object as IRetroable<T>).retro(); | ||
let item: IteratorResult<T>; | ||
while (!(item = it.next()).done) { | ||
yield item.value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, you could have also used yield*
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield*
Follow on to #346