Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document Pair.Pair method
  • Loading branch information
Altai-man committed May 17, 2019
1 parent 3bbea96 commit 1719332
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/Type/Pair.pod6
Expand Up @@ -336,7 +336,7 @@ B<NOTE:> this method is deprecated as of B<6.d> language version. Instead,
create a new C<Pair>, with a L<decontainerized|/language/glossary#decont> key/value.
=for code :preamble<my $p>
$p.=Map.=head.say; # OUTPUT: «orange␤»
$p.=Map.=head.say; # OUTPUT: «orange␤»
=head2 method Str
Expand All @@ -350,6 +350,17 @@ as I<key ~ \t ~ value>.
my $b = eggs => 3;
say $b.Str; # OUTPUT: «eggs 3␤»
=head2 method Pair
Defined as:
method Pair()
Returns the invocant Pair object.
my $pair = eggs => 3;
say $pair.Pair === $pair; # OUTPUT: «True␤»
=end pod

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

0 comments on commit 1719332

Please sign in to comment.