elliotchance / elliotchance/orderedmap

[feature] Have a `swapIndices(from,to)` method

Open
#59 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Dear all,

I am rewriting a medium sized Rust project in Go and in that initial implementation I used an `orderedmap` implementation ([this crate](https://crates.io/crates/indexmap)) 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.