How can I easily skip indices in an array?

Please check this other post.