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

[lib] Added HashMap.remove to Map.v3 #321

Merged
merged 8 commits into from
Jan 12, 2025
Merged

Conversation

linxuanm
Copy link
Contributor

@linxuanm linxuanm commented Jan 5, 2025

This PR adds support for removing a key-value pair from hash map along with a basic test for lib/util/Map.v3.

This would be useful for the Virgil language server that I'm working on, which needs a LRU implementation (with hashmap) and I thought it would be useful to be in the standard util library.

Copy link
Owner

@titzer titzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm modulo minor comments, and fixing tests.

lib/util/Map.v3 Outdated Show resolved Hide resolved
lib/util/Map.v3 Outdated Show resolved Hide resolved
test/lib/MapTest.v3 Show resolved Hide resolved
@linxuanm linxuanm marked this pull request as ready for review January 8, 2025 16:30
lib/util/Map.v3 Outdated Show resolved Hide resolved
@linxuanm
Copy link
Contributor Author

Ah sorry I must've missed it. This should be fixed now.

@titzer titzer merged commit af3ff3a into titzer:master Jan 12, 2025
11 checks passed
@linxuanm linxuanm deleted the hashmap-remove branch January 12, 2025 17:20
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