Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
cfa committed Feb 14, 2019
1 parent aa50ea2 commit 3e5a583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Type/Any.pod6
Expand Up @@ -100,13 +100,13 @@ from L«C<.list>|/routine/list». Use L«C<.List>|/routine/List» to
coerce specifically to L<List|/type/List>.
X<|@ list contextualizer>
C<@> can also be used as a list or positional contextualizer
C<@> can also be used as a list or positional contextualizer:
=for code
my $not-a-list-yet = $[1,2,3];
say $not-a-list-yet.perl; # OUTPUT: «$[1, 2, 3]␤»
say $not-a-list-yet.perl; # OUTPUT: «$[1, 2, 3]␤»
my @maybe-a-list = @$not-a-list-yet;
say @maybe-a-list.^name; # Array␤»
say @maybe-a-list.^name; # OUTPUT: «Array␤»
In the first case, the list is I<itemized>. C<@> as a prefix puts the initial
scalar in a list context by calling C<.list> and turning it into an array.
Expand Down

0 comments on commit 3e5a583

Please sign in to comment.