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

Correct way to add elements to a multidimensional array?

$
0
0
numbers = Array{Int}(undef, 2,2)
println(typeof(numbers))

I attempted to use push!() but I kept getting an error. Is there a method specifically to add elements to multidimensional arrays?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles