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 d51503b commit 68fbdb7Copy full SHA for 68fbdb7
doc/Language/list.pod6
@@ -504,7 +504,9 @@ list's C<.elems> as an argument and uses the resulting range to slice:
504
say @a[0..^*/2]; # OUTPUT: «(1 2 3)»
505
506
Notice that C<0..^*> and C<0..^*+0> behave consistently in subscripts despite
507
-one being an infinite range and the other a WhateverCode producing ranges.
+one being an infinite range and the other a WhateverCode producing ranges,
508
+but C<0..*+0> will give you an additional trailing C<Nil> because, unlike the
509
+infinite range C<0..*>, it does not truncate.
510
511
=head2 Array constructor context
512
0 commit comments