We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff36db commit aa50ea2Copy full SHA for aa50ea2
doc/Type/Any.pod6
@@ -99,6 +99,18 @@ does the L<Positional|/type/Positional> role
99
from L«C<.list>|/routine/list». Use L«C<.List>|/routine/List» to
100
coerce specifically to L<List|/type/List>.
101
102
+X<|@ list contextualizer>
103
+C<@> can also be used as a list or positional contextualizer
104
+
105
+=for code
106
+my $not-a-list-yet = $[1,2,3];
107
+say $not-a-list-yet.perl; # OUTPUT: «$[1, 2, 3]»
108
+my @maybe-a-list = @$not-a-list-yet;
109
+say @maybe-a-list.^name; # Array»
110
111
+In the first case, the list is I<itemized>. C<@> as a prefix puts the initial
112
+scalar in a list context by calling C<.list> and turning it into an array.
113
114
=head2 method push
115
116
Defined as:
0 commit comments