I'm not sure exactly what kind of list of arrays you're trying to
create. If you want an array of empty arrays, the best solution is the
for loops you show above, or a shorter comprehension form:
[[] for i in 1:3, j in 1:3, k=1:3]
On the contrary, be careful with fill() as it doesn't make a copy of
its first argument. That is, it will create an array in which all
elements hold a reference to a single common object. So check that,
call e.g.:
s[1,1][1] = 0
and see how all the elements in the array are affected.
Finally, if your goal is to fill the array later with arrays, you can
simply create an empty array of arrays:
x = Array{Array{Int,1}}(4, 4, 4)
and fill it manually later:
x[1,1] = [1]
as long as you don't try to access undefined elements.
Regards