method value
| 1 | role Enumeration |
| 1.1 | (Enumeration) method value |
| 2 | class Pair |
| 2.1 | (Pair) method value |
Documentation for method value assembled from the following types:
role Enumeration
From Enumeration
(Enumeration) method value
These are Enumeration properties.
<Þor Oðin Freija>;say Oðin.value; # OUTPUT: «1»
The value is assigned automatically by the enum type starting at 0. Oðin gets 1 since it is the second in the enum.
class Pair
From Pair
(Pair) method value
Defined as:
multi method value(Pair:) is rw
Returns the value part of the Pair.
my = (Perl => 6);say .value; # OUTPUT: «6»