Skip to content

[feature] Have a swapIndices(from,to) methodΒ #59

@dxps

Description

@dxps

Dear all,

I am rewriting a medium sized Rust project in Go and in that initial implementation I used an orderedmap implementation (this crate) that has a .swap_indices(fromIdx, toIdx) method which is very handy when the need is to just swapping two elements within.

I believe that is very nice to have this included in this implementation.

Thanks for considering it!

PS I'll see if I find the time to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions