Say I have a relatively large array of values
~o = (1..1000)
i want to read sections/ranges of it, that’s ok:
z = ~o.copyRange(0, 4);
however i’m struggling to find a way to recursively increment the range
values, so that next i can read another group of 5 values, as in:
z = ~o.copyRange(0, 4);
z = ~o.copyRange(5, 9);
z = ~o.copyRange(10, 14);
but with a more efficient, automated way
i guess i’ll have to put whatever it ends up being inside a Pfunc
so that i can run it as a Pattern, but i’m stuck figuring out what the trick is