NAME ^

src/classes/Pair.pir - methods for the Pair class

Methods ^

ACCEPTS()
Called from smartmatches '$_ ~~ X'. Delegates on to a method call '.:Xkey(Xval)'.
key
Gets the key of the pair.
kv
Return key and value as a 2-element List.
pairs
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.


parrot