Skip to content

Commit b8b8af2

Browse files
committed
sigil-() is no longer magical since 6.d
Includes an example, definitely closes #2113
1 parent 54fd057 commit b8b8af2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/Type/Hash.pod6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ Elements in this hash can be paired both sides of the Pair C<:b(3)>.
5151
5252
say %(«a b c 1 2 3»).^name; # OUTPUT: «Hash␤»
5353
54+
An empty hash can be initialized either with empty braces or, since 6.d, C<%()>.
55+
56+
say %().^name; # OUTPUT: «Hash␤»
57+
say {}.^name; # OUTPUT: «Hash␤»
58+
5459
=head1 Methods
5560
5661
=head2 method classify-list

0 commit comments

Comments
 (0)