Skip to content

Commit

Permalink
Revert "Update control.pod6"
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzZombo committed Aug 22, 2018
1 parent 7a79c63 commit 9aa8033
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/control.pod6
Expand Up @@ -424,9 +424,9 @@ A for loop can produce a C<List> of the values produced by each run of the
attached block. To capture these values, put the for loop in parenthesis or
assign them to an array:
(for 1, 2, 3 { $_ * 2 }).say; # OUTPUT «(2 4 6)␤»
my @a = do for 1, 2, 3 { $_ * 2 }; @a.say; # OUTPUT «[2 4 6]␤»
my @b = (for 1, 2, 3 { $_ * 2 }); @b.say; # OUTPUT: «[2 4 6]␤»
(for 1, 2, 3 { $_ * 2 }).say; # says "(2 4 6)"
my @a = do for 1, 2, 3 { $_ * 2 }; @a.say; # says "[2 4 6]"
my @b = (for 1, 2, 3 { $_ * 2 }); @a.say; # same thing
=head1 X<gather/take|control flow,gather take>
Expand Down

0 comments on commit 9aa8033

Please sign in to comment.