In Pair§
See primary documentation in context for method antipair
method antipair(Pair: --> Pair)
Returns a new Pair
object with key and value exchanged.
my = (d => 'Raku').antipair;say .key; # OUTPUT: «Raku»say .value; # OUTPUT: «d»
See primary documentation in context for method antipair
method antipair(Pair: --> Pair)
Returns a new Pair
object with key and value exchanged.
my = (d => 'Raku').antipair;say .key; # OUTPUT: «Raku»say .value; # OUTPUT: «d»