Skip to content

Commit 79be2f6

Browse files
author
Jan-Olof Hendig
committed
Added documentation for the key method
1 parent c92cf2c commit 79be2f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/Type/Pair.pod

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ Returns a new C<Pair> object with key and value exchanged.
4444
say $p.key; # Perl
4545
say $p.value; # 6
4646
47+
=head2 method key
48+
49+
Defined as:
50+
51+
multi method key(Pair:D:)
52+
53+
Usage:
54+
55+
PAIR.key
56+
57+
Returns the I<key> part of the C<Pair>.
58+
4759
=head2 method value
4860
4961
Defined as:

0 commit comments

Comments
 (0)