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

Add suport for ExactSizeIterator #25

Closed
robinmoussu opened this issue Sep 10, 2020 · 1 comment
Closed

Add suport for ExactSizeIterator #25

robinmoussu opened this issue Sep 10, 2020 · 1 comment

Comments

@robinmoussu
Copy link

The Generator struct implements Iterator, but not ExactSizeIterator. It would be nice to be able to create one if you already have access to the number of elements you are going to generate.

@Xudong-Huang
Copy link
Owner

It's impossible to know the exact remaining items that could be yield from a generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants