This ticket is getting a new life here:
https://github.com/rakudo/rakudo/issues/1268

I'll close this in favor of the github ticket because the github one already
has a link to a doc PR and some other discussion.

On 2016-02-19 10:24:52, ug...@cpan.org wrote:
> $ perl6 -e 'my @a = 1,2,3,4,5; @a[1]:delete; .say for @a[0..*]'
> 1
>
> $ perl6 -e 'my @a = 1,2,3,4,5; @a[1]:delete; .say for @a[0..4]'
> 1
> (Any)
> 3
> 4
> 5
>
>
> This is also the cause of the following splice behavior:
>
> $ perl6 -e 'my @a = 1,2,3,4,5; @a[1]:delete; .say for @a.splice(0)'
> 1
>
> $ perl6 -e 'my @a = 1,2,3,4,5; @a[1]:delete; .say for @a.splice'
> 1
> (Any)
> 3
> 4
> 5

Reply via email to