I would like a way to programmatically "deconstruct" a vector of variable-length vectors in Julia. I do not care about the resulting vector's order.
For example, suppose that my vector of vectors is A = [[1], [2,3], [4,5,6]]
. I can deconstruct A
by writing vcat(A[1], A[2], A[3])
, which returns [1,2,3,4,5,6]
. However, if the length of A
is large, then this approach becomes cumbersome. Is there a better, more scalable way to obtain the same result?