Skip to content

Commit 86dca71

Browse files
committed
Eliminates 'subscript adverb' category refs #1410
1 parent bbe693c commit 86dca71

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

doc/Language/subscripts.pod6

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,10 @@ require you to add parentheses in compound expressions:
453453
454454
The supported adverbs are:
455455
456-
=head2 X<:exists|subscript adverb,:exists>
456+
X<|:exists (subscript adverb)>
457+
=head2 C<:exists>
457458
458-
Return whether or not the requested element exists, instead of returning the
459+
Returns whether or not the requested element exists, instead of returning the
459460
element's actual value. This can be used to distinguish between elements with
460461
an undefined value, and elements that aren't part of the collection at all:
461462
@@ -491,7 +492,8 @@ element I<existence>.
491492
See L<#method EXISTS-POS> and L<#method EXISTS-KEY> for the underlying
492493
mechanism.
493494
494-
=head2 X<:delete|subscript adverb,:delete>
495+
X<:delete (subscript adverb)>
496+
=head2 C<:delete>
495497
496498
Delete the element from the collection or, if supported by the collection,
497499
creates a hole at the given index, in addition to returning its value.
@@ -532,7 +534,8 @@ element will at the same time also be deleted.
532534
See L<#method DELETE-POS> and L<#method DELETE-KEY> for the underlying
533535
mechanism.
534536
535-
=head2 X<:p|subscript adverb,:p>
537+
X<|:p (subscript adverb)>
538+
=head2 C<:p>
536539
537540
Return both the index/key and the value of the element, in the form of a
538541
L<Pair>, and silently skip nonexistent elements:
@@ -555,7 +558,8 @@ Can be combined with the L<#:exists> and L<#:delete> adverbs.
555558
556559
See also the L<pairs> routine.
557560
558-
=head2 X<:kv|subscript adverb,:kv>
561+
X<:kv (subscript adverb)>
562+
=head2 C<:kv>
559563
560564
Return both the index/key and the value of the element, in the form of a
561565
L<List>, and silently skip nonexistent elements. When used on a
@@ -588,7 +592,8 @@ Can be combined with the L<#:exists> and L<#:delete> adverbs.
588592
589593
See also the L<kv> routine.
590594
591-
=head2 X<:k|subscript adverb,:k>
595+
X<:k (subscript adverb)>
596+
=head2 C<:k>
592597
593598
Return only the index/key of the element, rather than its value, and silently
594599
skip nonexistent elements:
@@ -609,7 +614,8 @@ If you I<don't> want to skip nonexistent elements, use the negated form:
609614
610615
See also the L<keys> routine.
611616
612-
=head2 X<:v|subscript adverb,:v>
617+
X<:v (subscript adverb)>
618+
=head2 C<:v>
613619
614620
Return the bare value of the element (rather than potentially returning a
615621
mutable value container), and silently skip nonexistent elements:

0 commit comments

Comments
 (0)