File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ A typical use case is L<method C<lines> in C<IO::Handle>|/type/IO::Handle#method
26
26
which could use a lot of memory if it stored all the lines read from the
27
27
file. So
28
28
29
- = begin code
30
- for open('README.md').lines -> $line {
31
- say $line;
32
- }
33
- = end code
29
+ = begin code
30
+ for open('README.md').lines -> $line {
31
+ say $line;
32
+ }
33
+ = end code
34
34
35
35
won't keep all lines from the file in memory.
36
36
@@ -55,9 +55,9 @@ B<Caution:> No program should ever assume a C<Seq> may only be iterated once
55
55
even if not cached by the program. Caching is a volatile state exposed to the
56
56
developer as an optimization. The C < Seq > may become cached by many operations,
57
57
including calling C < perl > on the C < Seq > (if called prior to a non-cached
58
- iteration). From version 6.d, you C < .perl > can be called on consumed <Seq>. If a program assumes a Seq can only iterate once, but then is
59
- later changed to call one of these operations during the loop, that assumption
60
- will fail.
58
+ iteration). From version 6.d, you C < .perl > can be called on consumed <Seq>. If a
59
+ program assumes a Seq can only iterate once, but then is later changed to call
60
+ one of these operations during the loop, that assumption will fail.
61
61
62
62
= head1 Methods
63
63
You can’t perform that action at this time.
0 commit comments