Skip to content

Allow negative indexing #2606

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

Merged
merged 2 commits into from
Jul 17, 2025
Merged

Allow negative indexing #2606

merged 2 commits into from
Jul 17, 2025

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Jul 16, 2025

This change relaxing the restriction on indexing into arrays to allow negative indices. Previously the index limit was 0 to N-1, this updates it such that the allowed range is -N to N-1, where negative indices count from the end of the array.

This change relaxing the restriction on indexing into arrays to allow negative indices. Previously the index limit was 0 to N-1, this updates it such that the allowed range is -N to N-1, where negative indices count from the end of the array.
@swernli swernli added this pull request to the merge queue Jul 17, 2025
Merged via the queue into main with commit 9393192 Jul 17, 2025
18 checks passed
@swernli swernli deleted the swernli/negative-indexing branch July 17, 2025 17:31
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