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.

value

Gets the value of the pair.

pairs

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