Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbstractUnitRange for setindex!,deleteat!,splice! #41809

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

mkitti
Copy link
Contributor

@mkitti mkitti commented Aug 6, 2021

Several methods could be generalized to work with AbstractUnitRange rather than just UnitRange. There are now several AbstractUnitRange subtypes:

julia> subtypes(AbstractUnitRange)
4-element Vector{Any}:
 Base.IdentityUnitRange
 Base.OneTo
 Base.Slice
 UnitRange

This PR allows setindex!, deleteat!, and splice! to be applied to Array and AbstractUnitRange.

@mkitti mkitti marked this pull request as ready for review August 17, 2021 00:44
@vtjnash vtjnash merged commit 14e1ba0 into JuliaLang:master Aug 20, 2021
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants