File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -273,22 +273,22 @@ Use C<:delete> to remove a C<Pair> from the C<Hash>.
273
273
my %h = a => 1;
274
274
dd %h; # Hash %h = {:a(1)}
275
275
%h<a>:delete;
276
- dd %h # Hash %h = {}
276
+ dd %h; # Hash %h = {}
277
277
278
278
= head2 C < :p >
279
279
280
280
The adverb C < :p > returns a C < Pair > or a List of C < Pair > instead of just the value.
281
281
282
282
my %h = a => 1, b => 2;
283
- say %h<a>; # a => 1
284
- say %h<a b>; # (a => 1 b=> 2)
283
+ say %h<a>:p; # a => 1
284
+ say %h<a b>:p; # (a => 1 b=> 2)
285
285
286
286
= head2 C < :v > and C < :k >
287
287
288
288
The adverbs C < :v > and C < :k > return the key or value or a list their of.
289
289
290
290
my %h = a => 1, b => 2;
291
- say %h<a>:k; # a
292
- say %h<a b>:k # (a b)
291
+ say %h<a>:k; # a
292
+ say %h<a b>:k # (a b)
293
293
294
294
= end pod
You can’t perform that action at this time.
0 commit comments