Open qua4tre opened 5 months ago
Pretty tough if it needs to be performant. KeepIndex
puts the indices into a type parameter so it can do the indexing type-stably. That wouldn't be possible with a Vector
because it is not an isbits
type, so it can't be held as a type parameter. But we could probably make this work with a SVector
from StaticArrays, but it might be quite a bit of effort to get that working.
Using an example from the documentation:
How hard would it be to extend the
KeepIndex
functionality to more general types of indices?