Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added code examples to methods list and elems
  • Loading branch information
Jan-Olof Hendig committed Jul 8, 2016
1 parent bdf6756 commit ff9cfd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/Type/Capture.pod6
Expand Up @@ -76,6 +76,9 @@ Usage:
Returns the positional part of the Capture.
my Capture $c = \(2, 3, 5, apples => (red => 2));
say $c.list; # (2 3 5)
=head2 method hash
Defined as:
Expand All @@ -100,6 +103,9 @@ Usage:
Returns the number of positional elements in the Capture.
my Capture $c = \(2, 3, 5, apples => (red => 2));
say $c.elems; # 3
=head2 method keys
Defined as:
Expand Down

0 comments on commit ff9cfd0

Please sign in to comment.