On Wednesday, October 21, 2015 at 11:50:32 AM UTC-4, Spencer Russell wrote:
>
> For efficiency you'll still want to use a concrete Vector field if you're
> defining your own types, but luckily there seems to be a convert method
> defined so you can do:
>
> type MyArr{T}
> x::Vector{T}
> end
>
Instead, you can do
type MyArr{V:<AbstractVector}
x::V
end
and it will allow any vector type (including ranges) but will still be fast
(i.e. every instance of MyArr will have a concrete type for V).
