Generators
Impact
- Able to write iterators (and async iterators) with ease, comparable to languages like Python or JavaScript
- Able to extend the resulting iterators with "optimization" traits like
ExactSizeIterator
for maximum efficiency
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
ExactSizeIterator
for maximum efficiency