Is it possible to use only one parameter to do the following
type mytype{S}
x::Vector{S}
y::Vector{S} OR y::S
end
the value y should be able to be a vector of type S or just a single element of type S.
The reason I want this is because really I have
y::Dict{Vector{S}, Vector{Int64}}
and when the keys are just 1 element in length this is ugly
y["key"] #want this
y[["key"]] #must use this