Implement Step By Ranges
We have inclusive ranges, and exclusive ranges, so now we need a means of specifying an optional stepping.
$ let array = 1 2 3 4 5 6 7 8 9 10
$ echo @array[0,2..10]
> 1 3 5 7 9
$ echo {0,3..10}
> 0 3 6 9
We have inclusive ranges, and exclusive ranges, so now we need a means of specifying an optional stepping.
$ let array = 1 2 3 4 5 6 7 8 9 10
$ echo @array[0,2..10]
> 1 3 5 7 9
$ echo {0,3..10}
> 0 3 6 9