Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to "collapse" a Vector of Vector?

$
0
0

@tomtom wrote:

julia> vv = [[1.0, 2.0], [3.0, 4.0, 5.0], [6.0, 7.0] ]
3-element Array{Array{Float64,1},1}:
 [1.0, 2.0]     
 [3.0, 4.0, 5.0]
 [6.0, 7.0]     

is there an efficient way to transform it into:

[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0]

?

thanks.

Posts: 12

Participants: 6

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images