you can also try vcat(vec...)!

Am Montag, 12. Oktober 2015 23:33:19 UTC+2 schrieb Ben Ward:
>
> Hi,
>
> In R, if you have a list, containing two vectors that are - say - numeric, 
> you can unlist them into one vector:
>
> > a <- list(c(1,2,3,4,5), c(7,8,9,10,11))
>
> > a
>
> [[1]]
>
> [1] 1 2 3 4 5
>
>
>
> [[2]]
>
> [1]  7  8  9 10 11
>
>
>
> > unlist(a)
>
>  [1]  1  2  3  4  5  7  8  9 10 11
>
> > 
>
>
> Is there a convenient way to do this with vectors in Julia? Say I have a 
> Vector{Vector{Int}}:
>
> *vec = Vector{Int}[[1,2,3,4,5], [6,7,8,9,10]]*
>
> I can only think of creating a new vector and through some 
> loopiness, filling it in. 
>
> Thanks,
> Ben.
>

Reply via email to