Last active
July 7, 2016 15:43
-
-
Save dogbert17/3f7c351762eefea9b97eb4746ffe4603 to your computer and use it in GitHub Desktop.
Attempt to document Capture.keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=head2 method keys | |
Defined as: | |
multi method keys(Capture:D:) returns Seq:D | |
Usage: | |
$capture.keys | |
Returns a L<Seq|/type/Seq> containing all positional keys followed by all | |
named keys. For positional arguments the keys are the respective arguments | |
ordinal position starting from zero. | |
my $capture = \(2, 3, 5, apples => (red => 2)); | |
say $capture.keys; # (0 1 2 apples) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment