You need to specialize Base.vect
julia> Base.vect(X::Pickle...) = Pickle[X[i] for i in eachindex(X)]
julia> [Dill(3), Dill(4)]
2-element Vector{Pickle}:
Dill(3)
Dill(4)
You need to specialize Base.vect
julia> Base.vect(X::Pickle...) = Pickle[X[i] for i in eachindex(X)]
julia> [Dill(3), Dill(4)]
2-element Vector{Pickle}:
Dill(3)
Dill(4)