You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,19 +82,17 @@ $valid = new ValidAddingIterator(
82
82
83
83
## Decorating Generators
84
84
85
-
You can also use it with `Generators`. If the iterator is called twice, rewind exception will **not** be thrown.
86
-
87
-
**Attention**: it is not (currently) possible to pass callable as a parameter. You have to manually invoke `Generator` function:
85
+
You can also use it with `Generators`. If the iterator is called twice, rewind exception will **not** be thrown. Just pass a function which returns a `Generator` to the constructor:
0 commit comments