I know that if I had some function
function a(b::Integer)
then I can call a using parameters of any sub-type of Integer
, so Int64
or Int32
, for example.
I am wondering if there is any way to do the same thing with vectors, by this I mean make some function
function u(v::Vector{Integer})
which accepts parameters which are vectors whose elements are subtype of the Integer
type.
Please let me know if there is any way to do this in Julia.
Thank you,
Jack