parrotcode:
methods for the Pair class
Contents
|
Language Implementations
|
Perl6
NAME
src/classes/Pair.pir - methods for the Pair class
Methods
clone (vtable method)
Pairs are immutable, so just return ourself.
key
Gets the key of the pair.
value
Gets the value of the pair.
perl
Returns a Perl code representation of the pair.