Skip to content

Multi index Base.setindex #54508

Open
Open
@rayegun

Description

@rayegun

As far as I can tell there is no multi-index Base.setindex such as setindex((1,2,3,4,5), (10, 20), 1:2) or setindex((1,2,3,4,5), (10, 40), [1, 4])

I'm not sure what the most performant method for this is, perhaps something like:

return ntuple(j -> if else(j in i, v[j], x[j]), Val{N}())

Metadata

Metadata

Assignees

No one assigned

    Labels

    collectionsData structures holding multiple items, e.g. setsfeatureIndicates new feature / enhancement requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions