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 c306960 commit dc154aaCopy full SHA for dc154aa
doc/Type/Hash.pod6
@@ -137,6 +137,13 @@ most idiomatic and unambiguous solution:
137
lookup-user( %( name => "$person<firstName> $person<lastName>" ) );
138
};
139
140
+=head2 Slices
141
+
142
+You can assign to multiple keys at the same time with a slice.
143
144
+ my %h; %h<a b c> = 2 xx *; %h.perl.say # {:a(2), :b(2), :c(2)}
145
+ my %h; %h<a b c> = ^3; %h.perl.say # {:a(0), :b(1), :c(2)}
146
147
=head2 Non-string keys
148
149
By default keys in C<{ }> are forced to strings. To compose a hash with
0 commit comments