Every other

Nicholas Clark nick at ccl4.org
Fri Oct 30 21:19:57 GMT 2009


On Sat, Oct 31, 2009 at 08:07:08AM +1100, Damian Conway wrote:

> Yes. Several in fact. The nicest is:
> 
>     my @new = @old[0,2...*];

That's a sequence of 0, 2, extrapolate?

> That doesn't work yet in the current alpha release of Rakudo, but this
> form does:
> 
>     my @new = @old[ 0...*+2, 6 ];

Where's that's a sequence from 0 to whatever, with a stepping of 2?
What is the 6 for?

Nicholas Clark


More information about the london.pm mailing list