Closed palday closed 2 years ago
In this case the array is always a vector, so aren't the two styles effectively identical (in terms of performance profile)?
StarWarsArrays.jl
😂 okay... got it. We can't assume that the base defined index styles are the only ones that can be used.
https://github.com/beacon-biosignals/DataFrameIntervals.jl/blob/eb7df5fd5ed815cf3208ac3c0557f7df87cf1d19/src/DataFrameIntervals.jl#L23
Should probably be
Because you allow
A <: AbstractVector
, soA
might not have linear indexing. If you want to restrictA
to linear indexing, then you need an inner constructor that checks that.