Skip to content

Commit 19335e2

Browse files
committed
elaborate on EnumMap.new, GlitchMr++
1 parent 1e8e00f commit 19335e2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/EnumMap.pod

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ return them always in the same order when called on the same object.
1818
say %e.values; # prints "1 2\n" if the previous line
1919
# printed "a b\n", "b a\n" otherwise
2020
21-
=head1 METHODS
21+
=head1 Methods
2222
2323
=head2 new
2424
25+
proto method new(*@, *%) {*}
26+
multi method new(*@args, *%pairs)
27+
28+
Creates a new EnumMap from a list of alternating keys and values, with
29+
the same semantics as described for hash assigning in the L<Hash>
30+
documentation.
31+
2532
=head2 elems
2633
2734
method elems(EnumMap:D:) returns Int:D:

0 commit comments

Comments
 (0)