Skip to content

Commit 7506482

Browse files
committed
Missing example provided by mj41++ .
From http://irclog.perlgeek.de/perl6/2015-06-13#i_10746280 .
1 parent cf95b0f commit 7506482

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

S07-glr-draft.pod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ Conjecture: An array constructor preceded by a colon flattens its
8989
interior contents. Array constructors without the colon do not flatten
9090
the interior.
9191

92-
my $d = :[ 1, <a b c> ] # four elements, [ 1, 'a', 'b', 'c' ]
93-
my $e = [ 1, <a b c> ] # two elements, [ 1, ('a', 'b', 'c') ]
92+
my @d = :[ 1, <a b c> ] # four elements, [ 1, 'a', 'b', 'c' ]
93+
my @e = [ 1, <a b c> ] # two elements, [ 1, ('a', 'b', 'c') ]
94+
my @f = [ 1, 2, @a, 6..9 ] # four elements
9495

9596
Objects held in scalar containers are never interpolated in flattening
9697
context, even if the object is C<Iterable>.

0 commit comments

Comments
 (0)