Skip to content

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

Open

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.

Activity

  1. changed the title [-][feature] Have a `swapIndices(from, to, uint)` method[/-] [+][feature] Have a `swapIndices(from, to)` method[/+] on Mar 10, 2025
  2. changed the title [-][feature] Have a `swapIndices(from, to)` method[/-] [+][feature] Have a `swapIndices(from,to)` method[/+] on Mar 10, 2025
  3. elliotchance commented on Apr 14, 2025

    @elliotchance
    Owner

    Sure, put in a PR ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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