Skip to content
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

Fix Flatten for value-type iterators #10096

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Fix Flatten for value-type iterators #10096

merged 1 commit into from
Jan 6, 2021

Conversation

f-fr
Copy link
Contributor

@f-fr f-fr commented Dec 18, 2020

This requires Flatten to always update the iterator value itself,
not a copy.

  • Keep current iterator in @iterator
  • Update only @iterator
  • @generators only contains currently suspended iterators

The issue has been raised in the forum

This requires `Flatten` to always update the iterator value itself,
not a copy.

* Keep current iterator in `@iterator`
* Update only `@iterator`
* `@generators` only contains currently suspended iterators
@straight-shoota straight-shoota added this to the 1.0.0 milestone Dec 30, 2020
@asterite asterite merged commit 7d9bbdd into crystal-lang:master Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants