Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed array slice with [0..^*]
```
$ perl6 -e 'my @A = 1..5; say @A[0..^*]'
(1 2 3 4)
```
  • Loading branch information
ufobat committed Jan 13, 2019
1 parent 6e390bd commit 24babc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/list.pod6
Expand Up @@ -475,7 +475,7 @@ mathematicians that C<Inf> equals C<Inf-1>.
say @a[0..2]; # OUTPUT: «(1 2 3)␤»
say @a[0..^2]; # OUTPUT: «(1 2)␤»
say @a[0..*]; # OUTPUT: «(1 2 3 4 5)␤»
say @a[0..^*]; # OUTPUT: «(1 2 3 4 5)␤»
say @a[0..^*]; # OUTPUT: «(1 2 3 4)␤»
say @a[0..Inf-1]; # OUTPUT: «(1 2 3 4 5)␤»
=head2 Array constructor context
Expand Down Expand Up @@ -749,4 +749,4 @@ creature should never be passed back to unsuspecting users.
=end pod

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 comments on commit 24babc1

Please sign in to comment.