So I have an array with arbitrary length. I want to loop over it and getting important information like the index and its value. I would like to, for example, run a subroutine from idx=3..7 (4 idxs) then not execute it for 5 idxs, and then again for idx=13..17 execute and so on..
for example:
array_index=[0,1,2,3,4,5...n]
if idx==3..7:
z=subroutine(x,y)
if idx=8..12:
nothing
if idx=13..17:
z=subroutine(x,y)
and so on....
any help is appreciated thx!