We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d3a24 commit 2d46e62Copy full SHA for 2d46e62
doc/Type/Capture.pod6
@@ -133,6 +133,23 @@ named argument values.
133
my $capture = \(2, 3, 5, apples => (red => 2));
134
say $capture.values; # (2 3 5 red => 2)
135
136
+=head2 method kv
137
+
138
+Defined as:
139
140
+ multi method kv(Capture:D:) returns Seq:D
141
142
+Usage:
143
144
+ $capture.kv
145
146
+Returns a L<Seq|/type/Seq> of alternating L<keys|#method_keys> and
147
+L<values|#method_values>. The positional keys and values, if any, comes
148
+first followed by the named keys and values.
149
150
+ my $capture = \(2, 3, apples => (red => 2));
151
+ say $capture.kv; # (0 2 1 3 apples red => 2)
152
153
=head2 method Bool
154
155
Defined as:
0 commit comments