Skip to content

Commit

Permalink
Missing example provided by mj41++ .
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 15, 2015
1 parent cf95b0f commit 7506482
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S07-glr-draft.pod
Expand Up @@ -89,8 +89,9 @@ Conjecture: An array constructor preceded by a colon flattens its
interior contents. Array constructors without the colon do not flatten
the interior.

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

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

0 comments on commit 7506482

Please sign in to comment.