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

feat(stdlib)!: List.rotate wraparound for count > length #1558

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

alex-snezhko
Copy link
Member

Closes #1522

Also allows rotation if positive count exceeds list length per the spirit of this issue and to match rotation behavior of other data structures (wrapping with the list length).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Stdlib: List.rotate doesn't properly respect negative indexing
4 participants