@@ -161,7 +161,7 @@ address nonexistent elements:
161
161
say array[uint8].new(1, 2)[2] # OUTPUT: «0»
162
162
163
163
To silently skip nonexistent elements in a subscripting operation, see
164
- L<#Truncating slices> and the L<#:v> adverb.
164
+ L<Truncating slices| #Truncating slices> and the L<C<:v>| #:v> adverb.
165
165
166
166
=head1 From the end
167
167
@@ -280,7 +280,7 @@ dimensions>) the subscript is preserved across the slice operation
280
280
=head2 Truncating slices
281
281
282
282
Referring to nonexistent elements in a slice subscript causes the output C<List>
283
- to contain undefined values (or L<whatever else| #Nonexistent elements> the
283
+ to contain undefined values (or L<whatever else|#Nonexistent elements> the
284
284
collection in question chooses to return for nonexistent elements):
285
285
286
286
=begin code
@@ -301,7 +301,7 @@ not currently exist.
301
301
=end code
302
302
303
303
If you want the resulting slice to only include existing elements, you can
304
- silently skip the non-existent elements using the L<#:v> adverb.
304
+ silently skip the non-existent elements using the L<C<:v>| #:v> adverb.
305
305
306
306
=begin code
307
307
my @letters = <a b c d e f>;
@@ -479,7 +479,8 @@ faster.
479
479
=comment TODO: Add expanded documentation on building complex data structures
480
480
at /language/datastructures.html, and link to it from here.
481
481
482
- See L<#method BIND-POS> and L<#method BIND-KEY> for the underlying mechanism.
482
+ See L<method C<BIND-POS>|#method BIND-POS> and L<method C<BIND-KEY>|#method
483
+ BIND-KEY> for the underlying mechanism.
483
484
484
485
485
486
=head1 Adverbs
@@ -542,13 +543,13 @@ It can be used on multi-dimensional arrays and hashes:
542
543
say %multi-dim{1;'bar';3}:exists; # OUTPUT: «False»
543
544
544
545
545
- C<:exists> can be combined with the L<# :delete> and L<#:p>/L<#:kv> adverbs - in
546
- which case the behavior is determined by those adverbs, except that any returned
547
- element I<value> is replaced with the corresponding L<Bool|/type/Bool>
548
- indicating element I<existence>.
546
+ C<:exists> can be combined with the L<C< :delete>|#:delete> and
547
+ L<C<:p>|#:p>/L<C<:kv>|#:kv> adverbs - in which case the behavior is determined
548
+ by those adverbs, except that any returned element I<value> is replaced with the
549
+ corresponding L<Bool|/type/Bool> indicating element I<existence>.
549
550
550
- See L<# method EXISTS-POS> and L< #method EXISTS-KEY> for the underlying
551
- mechanism.
551
+ See L<method C< EXISTS-POS>| #method EXISTS-POS> and L<method
552
+ C<EXISTS-KEY>|#method EXISTS-KEY> for the underlying mechanism.
552
553
553
554
X<|Adverbs,:delete (subscript adverb)>
554
555
=head2 C<:delete>
@@ -585,12 +586,13 @@ say %fruit<apple> :delete($flag); # deletes the element only if $flag is
585
586
# true, but always returns the value.
586
587
=end code
587
588
588
- Can be combined with the L<#:exists> and L<#:p>/L<#:kv>/L<#:k>/L<#:v> adverbs -
589
+ It can be combined with the L<C<:exists>|#:exists> and
590
+ L<C<:p>|#:p>/L<C<:kv>#:kv>/L<C<:k>|#:k>/L<C<:v>|#:v> adverbs -
589
591
in which case the return value will be determined by those adverbs, but the
590
592
element will at the same time also be deleted.
591
593
592
- See L<# method DELETE-POS> and L< #method DELETE-KEY> for the underlying
593
- mechanism.
594
+ See L<method C< DELETE-POS>| #method DELETE-POS> and L<method
595
+ C<DELETE-KEY>|#method DELETE-KEY> for the underlying mechanism.
594
596
595
597
You can use also these adverbs on associative type objects, but it will
596
598
actually do nothing; it will also return C<Nil>
@@ -624,7 +626,7 @@ If you I<don't> want to skip nonexistent elements, use the negated form:
624
626
say %month<Jan Foo Mar>:!p; # OUTPUT: «(Jan => 1 Foo => (Any) Mar => 3)»
625
627
=end code
626
628
627
- Can be combined with the L<#:exists> and L<#:delete> adverbs.
629
+ It can be combined with the L<C<:exists>| #:exists> and L<C<:delete>| #:delete> adverbs.
628
630
629
631
See also the L<pairs|/routine/pairs> routine.
630
632
@@ -658,7 +660,7 @@ This adverb is commonly used to iterate over slices:
658
660
}
659
661
=end code
660
662
661
- Can be combined with the L<#:exists> and L<#:delete> adverbs.
663
+ It can be combined with the L<C<:exists>| #:exists> and L<C<:delete>| #:delete> adverbs.
662
664
663
665
See also the L<kv|/routine/kv> routine.
664
666
0 commit comments