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.
2 parents 42d74b4 + 409f9ed commit fd6293bCopy full SHA for fd6293b
doc/Type/Hash.pod
@@ -263,8 +263,17 @@ Some methods are implemented as adverbs on subscripts.
263
The adverb C<:exists> returns C<Bool::True> if a key exists in the Hash. If more then one key is supplied it returns a C<List> of C<Bool>.
264
265
my %h = a => 1, b => 2;
266
- say %h<a>; # True
267
- say %h<a b>; # (True True)
+ say %h<a>:exists; # True
+ say %h<a b>:exists; # (True True)
268
+
269
+=head2 C<:delete>
270
271
+Use C<:delete> to remove a C<Pair> from the C<Hash>.
272
273
+ my %h = a => 1;
274
+ dd %h; # Hash %h = {:a(1)}
275
+ %h<a>:delete;
276
+ dd %h # Hash %h = {}
277
278
=head2 C<:p>
279
0 commit comments