Allow indexing arrays by a range #3139
SleepingShell
started this conversation in
Ideas
Replies: 2 comments
-
@jfecher any thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's possible to implement without introducing too many new features but it'd likely require a copy of each index rather than a view into them since arrays are immutable internally. So you could easily create slices this way but mutating those slices afterwards wouldn't affect the original array. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Enable indexing of arrays by ranges such as in Rust.
It would also be useful to assign with ranges.
Happy Case
Assignment:
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
Beta Was this translation helpful? Give feedback.
All reactions