HaloO

Larry Wall wrote:
But maybe you meant @x[*+2 .. *-1]?  And @x[*] would be

    @x[*+0..^*-0]

written out that way.

How far can we drive the dwimmy use of the three values
that determine array access, i.e first and last index and
length. E.g. would @x[*+0..*/2] roughly slice to the middle
of the array? The second * needs to use the last index to
care for the possibility of an array with a negative shape.
Well or it uses the first index after the array. This would
also fit the @x[*+0..^*-0] above.

Hmm, slicing the second half @x[*+*/2..*-1] is even dwimmier.
It needs the length of the array for the second * to jump in
positive direction.

Regards, TSa.
--

Reply via email to