-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Iterator#auto_rewind? and auto_rewind=
If Iterator#auto_rewind? returns true, the iterator is rewinded after Iterator#each automatically. Otherwise it returns false, the iterator is not rewinded. Iterator#auto_rewind? default value is true, it is just breaking change. This feature motivation is to be able to apply Enumerable algorithm to Iterator. In current implementation, `Iterator#each` works only first time.
- Loading branch information
1 parent
7a0676b
commit 9740817
Showing
2 changed files
with
59 additions
and
0 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
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