There's nothing wrong with using splice (unless you want the operation to be non-destructive, which you haven't specified).
Another solution would be List::MoreUtils's natatime. The example in the docs does more or less exactly the same that your code is doing.
In reply to Re: Read Every n elements from Array
by Eliya
in thread Read Every n elements from Array
by vetrivel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |