Skip to content

Commit 820936b

Browse files
authored
Merge pull request #2806 from perl6/pair-pair-method
Document Pair.Pair method Thanks! Refs #2632 (please refer to the issue number in the commit message)
2 parents 3bbea96 + 1719332 commit 820936b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

doc/Type/Pair.pod6

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ B<NOTE:> this method is deprecated as of B<6.d> language version. Instead,
336336
create a new C<Pair>, with a L<decontainerized|/language/glossary#decont> key/value.
337337
338338
=for code :preamble<my $p>
339-
$p.=Map.=head.say; # OUTPUT: «orange␤»
339+
$p.=Map.=head.say; # OUTPUT: «orange␤»
340340
341341
=head2 method Str
342342
@@ -350,6 +350,17 @@ as I<key ~ \t ~ value>.
350350
my $b = eggs => 3;
351351
say $b.Str; # OUTPUT: «eggs 3␤»
352352
353+
=head2 method Pair
354+
355+
Defined as:
356+
357+
method Pair()
358+
359+
Returns the invocant Pair object.
360+
361+
my $pair = eggs => 3;
362+
say $pair.Pair === $pair; # OUTPUT: «True␤»
363+
353364
=end pod
354365

355366
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)