Hello, How to construct without push! equivalent vector of vectors?
a=[]
push!(a, [1,2])
push!(a, [2,3])
it gives:
# 2-element Array{Any,1}:
# [1,2]
# [2,3]
If i type
a=[[1,2],[2,3]]
it gives me a 4-element array.
Hello, How to construct without push! equivalent vector of vectors?
a=[]
push!(a, [1,2])
push!(a, [2,3])
it gives:
# 2-element Array{Any,1}:
# [1,2]
# [2,3]
If i type
a=[[1,2],[2,3]]
it gives me a 4-element array.