We can use the []
to create an empty Array in Julia. The simplest example would be:
A = [] # 0-element Array{Any,1}
Arrays of type Any
will generally not perform as well as those with a specified type. Thus, for instance, we can use:
B = Float64[] ## 0-element Array{Float64,1}
C = Array{Float64}[] ## 0-element Array{Array{Float64,N},1}
D = Tuple{Int, Int}[] ## 0-element Array{Tuple{Int64,Int64},1}
See Initialize an Empty Array of Tuples in Julia for source of last example.