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

splice! has both scalar and nonscalar methods #49305

Open
jariji opened this issue Apr 9, 2023 · 0 comments
Open

splice! has both scalar and nonscalar methods #49305

jariji opened this issue Apr 9, 2023 · 0 comments

Comments

@jariji
Copy link
Contributor

jariji commented Apr 9, 2023

@mbauman writes

So with broadcasting dots, we've managed to excise nearly all sometimes-scalar/sometimes-vectorized functions in Julia to great benefit. There are two notable stragglers: getindex and setindex!.

splice! is another one of these maybe-vectorized functions.

  splice!(a::Vector, index::Integer, [replacement]) -> item
  splice!(a::Vector, indices, [replacement]) -> items

Technically the index::Integer is iterable too, but that's not how this API is supposed to be interpreted.

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

No branches or pull requests

1 participant