Skip to content

Commit 2b93491

Browse files
committed
Add postcircumfix Map{} with list of keys.
1 parent 33283d3 commit 2b93491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Type/Map.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ To retrieve a value from the Map by key, use the C<{ }> postcircumfix
2626
operator:
2727
2828
my $map = Map.new('a', 1, 'b', 2);
29-
say $map{'a'}; # OUTPUT: «1␤»
29+
say $map{'a'}; # OUTPUT: «1␤»
30+
say $m{ 'a', 'b' }; # OUTPUT: «(1 2)␤»
3031
3132
To check whether a given key is stored in a Map, modify the access
3233
with the C<:exists> adverb:

0 commit comments

Comments
 (0)