Maybe something like: x = Array{Int}(3,4,0)
x = vec(x) append!(x, 1:12) x = reshape(x,3,4,1) x = vec(x) append!(x, 13:24) x = reshape(x,3,4,2) Of course you could wrap it into a more convenient function. On Friday, April 8, 2016 at 7:31:30 PM UTC+10, Sisyphuss wrote: > I have a related question: > > How to initialize an array of fixed shape except one dimension, such as `m > * n * 0`. > And I would like to dynamically increase the last dimension later. >