I would like a method foo(x)
to be called when x
is a U{V{T,N}
, where
-
U <: AbstractVector
, S <: AbstractArray{T,N}
and I can’t figure out how. Thought that since
Array{Int,2} <: AbstractArray{Int,2}`
I would have
Vector{Array{Int,2}} <: AbstractVector{AbstractArray{Int,2}}
but that does not hold. The syntax
foo{T,N,S <: AbstractArray, U <: AbstractVector}(v::U{S{T,N}}) = :called
does not work. Using 0.5.0
.