julia> []
0-element Array{None,1}
I.e., it's an array of things of type None, of which there aren't any. :-)
The point of its existence is that, in Julia, arrays have types, and it's
impossible to determine the type of the elements of [].
The easiest thing you can do is add a type to the front:
a = Float64[] # or whatever type you want
you can't do Z = rand(3); Z[1] = []; What's the Julia way of doing these
> things?
>
That deletes Z[1] in Matlab, right? As long as Z is a vector, you can do
deleteat!(Z, 1) # delete the first element of Z and return Z
or
x = splice!(Z, 1) # remove and return the first value
or
x = shift!(Z) # "shift" the first value from Z (like pop!, but from
the front)
Cheers,
Kevin