Skip to content

Commit a0c3071

Browse files
committed
Delete count-only
1 parent 7e80010 commit a0c3071

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

doc/Type/Iterator.pod6

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,6 @@ return C<True> here, for example C<(1..6).roll(*)>.
121121
say (1 .. 100).is-lazy; # False
122122
say (1 .. Inf).is-lazy; # True
123123
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-
136124
=head2 method sink-all
137125
138126
Defined as:

0 commit comments

Comments
 (0)