You probably want Union{AbstractVector{T}, Tuple{Vararg{T}}} where {T}. If you need to write this more often, you can also create an alias:
VectorLike{T} = Union{AbstractVector{T}, Tuple{Vararg{T}}}
and then dispatch on that.
You probably want Union{AbstractVector{T}, Tuple{Vararg{T}}} where {T}. If you need to write this more often, you can also create an alias:
VectorLike{T} = Union{AbstractVector{T}, Tuple{Vararg{T}}}
and then dispatch on that.