Skip to content

Implement delindex!(x, idx) #5118

Closed
Closed
@kmsquire

Description

#3023 (and #3405 and related issues) changed/added delete!, pop!, and splice!.

One unimplemented part of the proposal is the ability to delete an index from an array and return the modified array (rather than the deleted item or items).

It was suggested that delete! not be used for this, since it conflicts semantically with set deletion. delindex! was proposed, but never implemented.

One potential caveat mentioned is that this would not interact well with array views, although the same argument could be said of splice! and pop!.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions