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.
1 parent 0c971d3 commit 5f679e9Copy full SHA for 5f679e9
doc/Type/Enumeration.pod6
@@ -87,13 +87,15 @@ C<Oðin> gets 1 since it is the second in the C<enum>.
87
=head2 method enums
88
89
Defined as:
90
+
91
method enums()
92
-Returns the list of C<Enumeration>s for the enum type this particular
93
-C<Enumeration> is in. Works both on the enum type and any key.
+Returns a L<Map|/type/Map> of enum values. Works both on the enum type
94
+and any key.
95
96
enum Mass ( mg => 1/1000, g => 1/1, kg => 1000/1 );
- say g.enums; # OUTPUT: «{g => 1, kg => 1000, mg => 0.001}»
97
+ say Mass.enums; # OUTPUT: «Map.new((g => 1, kg => 1000, mg => 0.001))»
98
+ say g.enums; # OUTPUT: «Map.new((g => 1, kg => 1000, mg => 0.001))»
99
100
=head2 method kv
101
0 commit comments