Skip to content

Commit f3d933e

Browse files
author
Jan-Olof Hendig
committed
Added docs for Map.Bool
1 parent d5ba244 commit f3d933e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/Type/Map.pod

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,19 @@ Returns a list of keys and values interleaved.
174174
175175
Map.new('a', 1, 'b', 2).kv # a, 1, b, 2 OR b, 2, a, 1
176176
177+
=head2 method Bool
178+
179+
Defined as:
180+
181+
method Bool(Map:D:) returns Bool:D
182+
183+
Usage:
184+
185+
MAP.Bool
186+
187+
Returns C<True> if the invocant contains at least one key/value pair.
188+
189+
my $m = Map.new('a' => 2, 'b' => 17);
190+
say $m.Bool; # True
191+
177192
=end pod

0 commit comments

Comments
 (0)