src/classes/Pair.pir - methods for the Pair class
- ACCEPTS()
- Called from smartmatches '$_ ~~ X'.
Delegates on to a method call '.:Xkey(Xval)'.
- key
- Gets the key of the pair.
- value
- Gets the value of the pair.
- get_string() (vtable method)
- Stringify the Pair.
- fmt
our Str multi Pair::fmt ( Str $format )
- Returns the invocant pair formatted by an implicit call to
sprintf
on the key and value.
- perl
- Returns a Perl code representation of the pair.