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 Has Method for OrderedMap #54

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

busi-reddy-karnati
Copy link
Contributor

@busi-reddy-karnati busi-reddy-karnati commented Jan 1, 2025

This pull request introduces a new Has method to the OrderedMap structure across versions and adds corresponding tests and benchmarks to ensure its functionality and performance.

Usage:

for v1

m := orderedMap.NewOrderedMap()
keyExists := m.Has(key)

for v2, v3

m := orderedMap.NewOrderedMap[string, string]()
keyExists := m.Has(key)

Tests:

Added tests for v1, v2, and v3

Benchmarks:

Added benchmarks in v1, v2, and v3


This change is Reviewable

@busi-reddy-karnati
Copy link
Contributor Author

@elliotchance Sorry about the previously raised PR.
I re-did it!

@elliotchance elliotchance merged commit 9d80274 into elliotchance:master Jan 2, 2025
3 checks passed
@elliotchance
Copy link
Owner

Thanks! I've pushed out the new versions.

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