@@ -249,14 +249,6 @@ an argument will iterate or terminate the C<grep> itself, not some
249
249
loop surrounding the statement containing the C<grep>. Use a label
250
250
if you mean the other thing.
251
251
252
- =item grep-index
253
-
254
- multi method grep-index ( @values: Matcher $test --> Iterable )
255
- multi grep-index ( Matcher $test, *@values --> Iterable )
256
-
257
- Like C<grep>, but returns ordinal numbers of the matching
258
- values, or C<Nil> if not found.
259
-
260
252
=item first
261
253
262
254
multi method first ( @values: Matcher $test )
@@ -265,33 +257,6 @@ values, or C<Nil> if not found.
265
257
C<first> searches exactly like C<grep> but stops testing at the first match
266
258
and returns just that value. Returns C<Nil> if no match is found.
267
259
268
- =item first-index
269
-
270
- multi method first-index ( @values: Matcher $test --> Any )
271
- multi first-index ( Matcher $test, *@values --> Any )
272
-
273
- Like C<first>, but returns the ordinal number of the first matching value,
274
- or C<Nil> if not found.
275
-
276
- =item last-index
277
-
278
- multi method last-index ( @values: Matcher $test )
279
- multi last-index ( Matcher $test, *@values )
280
-
281
- C<.last-index> is similar to C<first-index>, but the values are tested
282
- starting with the last value and working backwards until the first
283
- successful test. The returned indices are still as counted from the
284
- beginning of the sequence.
285
-
286
- Lazy sequences will be iterated to the end, remembering values, before
287
- any tests are evaluated. If the test is not as resource intensive as
288
- remembering all the values, consider instead:
289
-
290
- @values.grep-index($test).max;
291
-
292
- ...which will run the test on all elements but will not keep unneeded
293
- values in memory.
294
-
295
260
=item pick
296
261
297
262
multi method pick ( -> Mu )
0 commit comments