value
ErrorsCollection

value

Synthesised documentation from type/Enumeration type/Pair

From type/Enumeration

See Original text in context

These are Enumeration properties.

enum Norse-gods <Þ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.

From type/Pair

See Original text in context

multi method value(Pair:D:is rw

Returns the value part of the Pair.

my $p = (Raku => "d");
say $p.value# OUTPUT: «d␤»