Skip to content

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Apr 2, 2025

On a recent nightly (v"1.13.0-DEV.347"), Base has added AbstractOneTo (JuliaLang/julia#56902), and in this PR we change SOneTo to subtype AbstractOneTo when this is available. This makes combinations of SOneTo, Base.OneTo and Integers dispatch to Base methods, and we don't need to disambiguate these in this package.

Fixes #1248. After this, StaticArrays only needs to define similar methods for Tuples of SOneTo as indices.

@jishnub jishnub added the arrays AbstractArray interface and array operations label Apr 2, 2025
Co-authored-by: Neven Sajko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays AbstractArray interface and array operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid piracy
2 participants