In Pair§
See primary documentation in context for method value
multi method value(Pair:) is rw
Returns the value part of the Pair
.
my = (Raku => "d");say .value; # OUTPUT: «d»
In role Enumeration§
See primary documentation in context for 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
.