Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect .count-only/.bool-only impls
My undertstanding is these methods need to account for the items already pulled from the iterator; that is, a consumer can always do `.pull-one xx .count-only` (if .count-only is implemented) to legally pull all of the remaining elements from the iterator. Current impls of these methods only consider the initial state of the iterator and do not adjust the return values as the iterator is being pulled from. Fix by making the methods adjust or removing the implementations.
- Loading branch information
1 parent
f70e20b
commit af9812f
Showing
1 changed file
with
41 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters