Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for replacing keys and maintaining order #37

Merged
merged 1 commit into from
May 24, 2024

Conversation

drshriveer
Copy link
Contributor

@drshriveer drshriveer commented May 24, 2024

Background

We have a use case that requires being able to replace an existing key with a new key in an ordered map such that order is maintained. We currently use this library, so I figured I would contribute rather than perma-forking.

Changes

  • add a ReplaceKey method to OrderedMap

Testing

  • added several tests matching the library's form as much as possible.

This change is Reviewable

@elliotchance elliotchance merged commit f5ea9d1 into elliotchance:master May 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants