How to "transpose" a vector of vectors?

This would also work if all vectors have the same length

V2 = [[x[i] for x in V1] for i in eachindex(V1[1])]
1 Like