key
ErrorsCollection

key

Synthesised documentation from type/Enumeration type/X/Syntax/NegatedPair type/Pair

From type/Enumeration

See Original text in context

An Enumeration property.

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

From type/X/Syntax/NegatedPair

See Original text in context

Returns the key of the pair that caused the error.

From type/Pair

See Original text in context

multi method key(Pair:D:)

Returns the key part of the Pair.

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