Skip to content

Add Slice.RemoveAt(index int) function to pdata #11276

Open
@tigrannajaryan

Description

@tigrannajaryan

Is your feature request related to a problem? Please describe.
I need to remove an element from a slice.

Describe the solution you'd like
RemoveAt(index int) would be a nice addition to slices.
Alternatively call it Delete and have Delete(i, j int) to match semantics of slices.Delete.

Describe alternatives you've considered
I can use RemoveIf and count until the desired index but it is needlessly complex and slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:pdatapdata module related issuesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions