The signature should be u(v::Vector{<:Integer}). Parametric types in Julia are invariant rather than covariant (or contravariant).
6 Likes
The signature should be u(v::Vector{<:Integer}). Parametric types in Julia are invariant rather than covariant (or contravariant).