For-loop over two arrays, sequentially

Or use Iterators.flatten: Iteration utilities · The Julia Language

for el in Iterators.flatten((v1, v2))
    do_something(el)
end
4 Likes