method antipair
1 | class Pair |
1.1 | (Pair) method antipair |
Documentation for method antipair
assembled from the following types:
class Pair
From Pair
(Pair) method antipair
Defined as:
method antipair(--> Pair)
Returns a new Pair
object with key and value exchanged.
my = (6 => 'Perl').antipair;say .key; # OUTPUT: «Perl»say .value; # OUTPUT: «6»