In role Enumeration§
See primary documentation in context for method pair
method pair(::?CLASS:)
Returns it as a Pair
.
say g.pair; # OUTPUT: «g => 1»
See primary documentation in context for method pair
method pair(::?CLASS:)
Returns it as a Pair
.
say g.pair; # OUTPUT: «g => 1»