Skip to content

Is there any way to push!/pop!/delete! from an OffsetArray? #60

@x-ji

Description

@x-ji

Maybe I haven't understood the usage of OffsetArray fully. I am porting some code from C++ and would like to have an 0-based indexing array on which one can still perform actions such as push! or delete! (i.e. the length is not fixed). Is this possible to achieve with this package? Or should I consider writing my own type extending AbstractArray.

The algorithm (which involves the depth of a tree) will be all over the place without 0-based indexing, which is quite annoying. Basically what I want is an array similar to the default array, with the only difference being that its index starts from 0.

Metadata

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