You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subtype AbstractNamedUnitRange to AbstractNamedArray, not AbstractUnitRange (#170)
## Summary
`AbstractNamedUnitRange` now subtypes `AbstractNamedArray` rather than
`AbstractUnitRange`. A named unit range genuinely is an array (it has a
size and cartesian indexing), but it is not a unit range: its elements
are `NamedInteger`s, not plain stepped integers, so it never honored the
`AbstractUnitRange` contract. Reparenting it under `AbstractNamedArray`
(which stays `<: AbstractArray`) keeps the array behavior while letting
it inherit the shared named-array interface instead of duplicating it.
The range-specific behavior stays: the range `iterate`,
`first`/`last`/`step`, `conj`, and a `setname` that rebuilds through
`named` so the result stays a named unit range.
0 commit comments