Skip to content

Commit 4218c13

Browse files
committed
Remove (grep|first|last)-index fossil
1 parent e6fcddd commit 4218c13

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

S29-functions.pod

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -678,20 +678,14 @@ These functions are exported into the default namespace
678678

679679
=item grep -- see S32-setting-library/Containers.pod
680680

681-
=item grep-index -- see S32-setting-library/Containers.pod
682-
683681
=item first -- see S32-setting-library/Containers.pod
684682

685-
=item first-index -- see S32-setting-library/Containers.pod
686-
687683
=item join -- see S32-setting-library/Containers.pod
688684

689685
=item keys -- see S32-setting-library/Containers.pod
690686

691687
=item kv -- see S32-setting-library/Containers.pod
692688

693-
=item last-index -- see S32-setting-library/Containers.pod
694-
695689
=item map -- see S32-setting-library/Containers.pod
696690

697691
=item max -- see S32-setting-library/Containers.pod

S32-setting-library/Containers.pod

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,6 @@ an argument will iterate or terminate the C<grep> itself, not some
249249
loop surrounding the statement containing the C<grep>. Use a label
250250
if you mean the other thing.
251251

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-
260252
=item first
261253

262254
multi method first ( @values: Matcher $test )
@@ -265,33 +257,6 @@ values, or C<Nil> if not found.
265257
C<first> searches exactly like C<grep> but stops testing at the first match
266258
and returns just that value. Returns C<Nil> if no match is found.
267259

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-
295260
=item pick
296261

297262
multi method pick ( -> Mu )

0 commit comments

Comments
 (0)