For-loop over two arrays, sequentially

FWIW, from this related thread, vcat allocates but seems to be faster than Iterators.flatten.

3 Likes