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

In-place array functions #55031

Open
jariji opened this issue Jul 4, 2024 · 0 comments
Open

In-place array functions #55031

jariji opened this issue Jul 4, 2024 · 0 comments
Labels
domain:arrays [a, r, r, a, y, s] kind:feature Indicates new feature / enhancement requests

Comments

@jariji
Copy link
Contributor

jariji commented Jul 4, 2024

In-place operations are useful for performance and mutating stateful objects so it could be helpful to have in-place versions of common array functions.

There are various array functions like map! that take dest, src arguments but the docstring warns against overlapping arguments, so there isn't a recommended way to do in-place mutation.

We already have in-place reverse!, invpermute!, permute!.

@nsajko nsajko added domain:arrays [a, r, r, a, y, s] kind:feature Indicates new feature / enhancement requests labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays [a, r, r, a, y, s] kind:feature Indicates new feature / enhancement requests
Projects
None yet
Development

No branches or pull requests

2 participants