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 a convenience Of builder function to hashset #23

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

shawc71
Copy link
Contributor

@shawc71 shawc71 commented Jun 26, 2022

Similar to #22 except it applies to hashset

When working with sets it is convenient to have an api for creating and initializing the set in one go.

This adds a new function to mapset to do exactly that. Example:

set := hashset.Of[string](10, g.Equals[string], g.HashString, "foo", "bar", "baz")

Also update README to include doc for `Of`
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