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 d19c977 commit f4004e4Copy full SHA for f4004e4
doc/Type/Seq.pod6
@@ -15,11 +15,11 @@ iterated during the assignment:
15
16
=begin code
17
# The Seq created by gather ... take is consumed on the spot here.
18
- my @a = gather do { say 'consuming...'; take 'one' }; # OUTPUT: «comsuming...»
+ my @a = gather do { say 'consuming...'; take 'one' }; # OUTPUT: «consuming...»
19
20
# The Seq here is only consumed as we iterate over @a later.
21
my @a = lazy gather do { say 'consuming...'; take 'one' }; # outputs nothing.
22
- .say for @a; # OUTPUT: «comsuming...one»
+ .say for @a; # OUTPUT: «consuming...one»
23
=end code
24
25
A typical use case is L<method C<lines> in C<IO::Handle>|/type/IO::Handle#method_lines>,
0 commit comments