method key

Documentation for method key assembled from the following types:

class X::Syntax::NegatedPair

From X::Syntax::NegatedPair

(X::Syntax::NegatedPair) method key

Returns the key of the pair that caused the error.

role Enumeration

From Enumeration

(Enumeration) method key

An Enumeration property.

enum Norse-gods <Þor Oðin Freija>;
say Freija.key# OUTPUT: «Freija␤»

class Pair

From Pair

(Pair) method key

Defined as:

multi method key(Pair:D:)

Returns the key part of the Pair.

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