Documentation for method pair assembled from the following pages:

Role: Enumeration §

From Enumeration

(Enumeration) method pair §

Defined as:

method pair(::?CLASS:D:)

Returns it as a Pair.

say g.pair# OUTPUT: «g => 1␤»