Suppose I have an array with nested "columns"
column_nested = [[1, 2], [2, 3], [5, 4]]
How would I convert it into a "rowwise nested array"?
row_nested = [[1, 2, 5], [2, 3, 4]]
My solution: row_nested = collect(eachrow(hcat(column_nested...))) seems a bit verbose and severely messes with types.
>Solution :
Using broadcasting and zip:
julia> row_nested = collect.(zip(column_nested...))
2-element Vector{Vector{Int64}}:
[1, 2, 5]
[2, 3, 4]