How to get a typed empty array?

julia> A = Tuple{Int64,Int64}[]
Tuple{Int64, Int64}[]

julia> push!(A, (1,1))
1-element Vector{Tuple{Int64, Int64}}:
 (1, 1)

julia> A[1]
(1, 1)

Maybe this is what you need.

5 Likes