-
Notifications
You must be signed in to change notification settings - Fork 35
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
sort / reverse modify arrays in-place #405
Milestone
Comments
odino
changed the title
sort / reverse modify arrays in -place
sort / reverse modify arrays in-place
Sep 21, 2020
While unifying is great, I'd unify on the "returns a copy of the modified array/string" direction. If you ever want to get into threading or anything, immutability goes a long way in eliminating all sorts of race conditions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
possibly strings as well -- and there might be some other functions that modify things in place themselves...shuffle / flatten etc all work on a copy.
It'd be good to just unify this behavior...
The text was updated successfully, but these errors were encountered: