We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e80010 commit a0c3071Copy full SHA for a0c3071
doc/Type/Iterator.pod6
@@ -121,18 +121,6 @@ return C<True> here, for example C<(1..6).roll(*)>.
121
say (1 .. 100).is-lazy; # False
122
say (1 .. Inf).is-lazy; # True
123
124
-=head2 method count-only
125
-
126
-Defined as:
127
128
- method count-only(Iterator:D:) returns int
129
130
-Produces and discards all elements until it returns the end of the iteration,
131
-and returns the number of elements produced. This is useful to reduce memory
132
-usage in scenarios such as C<open($file).lines.elems>.
133
134
- say (1 .. 1000).iterator.count-only; # 1000
135
136
=head2 method sink-all
137
138
Defined as:
0 commit comments