Documentation for method key
assembled from the following pages:
Class: X::Syntax::NegatedPair §
(X::Syntax::NegatedPair) method key §
Returns the key of the pair that caused the error.
Class: Pair §
From Pair
(Pair) method key §
Defined as:
multi method key(Pair:)
Returns the key part of the Pair
.
my = (Raku => "d");say .key; # OUTPUT: «Raku»
Role: Enumeration §
From Enumeration
(Enumeration) method key §
An Enumeration
property.
<Þor Oðin Freija>;say Freija.key; # OUTPUT: «Freija»