Closed noritada closed 1 year ago
Iterator::size_hint()s implemented in this library return the same length after consuming items.
Iterator::size_hint()
As per description in the API reference, the implementation of size_hint() should return the bounds on the remaining length of the iterator.
size_hint()
next()
When consuming items, the returned length of size_hint() decreases.
Even after consuming items, the returned length of size_hint() does not change.
No response
Simple Description on the Bug
Iterator::size_hint()
s implemented in this library return the same length after consuming items.As per description in the API reference, the implementation of
size_hint()
should return the bounds on the remaining length of the iterator.Steps to Reproduce
size_hint()
next()
Expected Behavior
When consuming items, the returned length of
size_hint()
decreases.Actual Behavior
Even after consuming items, the returned length of
size_hint()
does not change.Additional Context
No response