-
Vectoris an alias forArray{T, 1}, so it doesn’t matter how you write it. -
Union{Any, Vector{T}}isAny, so you lostVectorspecialization.
This is working
function x(a::Array{T,N}, b::Dict) where {T,N}
throw(DomainError("Do not support any arrays!"))
end
function x(a, b::Dict)
return 1
end
function x(a::Vector{T}, b::Dict) where T
return 1
end
julia> x([d1,d2], d3)
1