File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -782,14 +782,14 @@ Returns the list of enum-pairs. Works both on the enum type and any key.
782
782
783
783
Returns the key of an enum-pair.
784
784
785
- = for code :skip-test
785
+ = for code :preamble<<enum Mass<g> >>
786
786
say g.key; # OUTPUT: «g»
787
787
788
788
= head4 method value
789
789
790
790
Returns the value of an enum-pair.
791
791
792
- = for code :skip-test
792
+ = for code :preamble<<enum Mass<g> >>
793
793
say g.value; # OUTPUT: «1»
794
794
795
795
= head4 method pair
@@ -801,7 +801,7 @@ method pair(::?CLASS:D:)
801
801
802
802
Returns a C < Pair > of the enum-pair.
803
803
804
- = for code :skip-test
804
+ = for code :preamble<<enum Mass<g> >>
805
805
say g.pair; # OUTPUT: «g => 1»
806
806
807
807
= head4 method kv
@@ -813,7 +813,7 @@ multi method kv(::?CLASS:D:)
813
813
814
814
Returns a list with key and value of the enum-pair.
815
815
816
- = for code :skip-test
816
+ = for code :preamble<<enum Mass<g> >>
817
817
say g.kv; # OUTPUT: «(g 1)»
818
818
819
819
= head3 Coercion
You can’t perform that action at this time.
0 commit comments