Documentation for routine value

Documentation for routine value, assembled from the following types:

language documentation Typesystem

From Typesystem

(Typesystem) method value

Returns the value of an enum-pair.

say g.value# OUTPUT: «1␤» 

class Pair

From Pair

(Pair) method value

Defined as:

multi method value(Pair:D:is rw

Returns the value part of the Pair.

my $p = (Perl => 6);
say $p.value# OUTPUT: «6␤»