File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ L<subscripts|/language/subscripts>.
22
22
In Perl 6, assigning a C < List > to a scalar variable does not lose
23
23
information. The difference is that iteration generally treats a
24
24
list (or any other list-like object, like a L < Seq|/type/Seq > or an L < Array|/type/Array > )
25
- inside a scalar as a single element, as long as it's part of another .
25
+ inside a scalar as a single element.
26
26
27
27
my $s = (1, 2, 3);
28
28
for $s { } # one iteration
@@ -36,7 +36,7 @@ inside a scalar as a single element, as long as it's part of another .
36
36
for @a { } # three iterations
37
37
for @a.item { } # one iteration
38
38
39
- C < .item > can often be written as C < $( ... ) > , and on an array variable
39
+ C < .item > is often written as C < $( ... ) > and, on array variables,
40
40
even as C < $@a > .
41
41
42
42
Lists generally don't interpolate (flatten) into other lists, except
You can’t perform that action at this time.
0 commit comments