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 function to create a new mapset initialized with given values #22

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

shawc71
Copy link
Contributor

@shawc71 shawc71 commented Jun 26, 2022

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 := mapset.Of[string]("foo", "bar", "baz")

Also update README to include doc for `Of`
@shawc71
Copy link
Contributor Author

shawc71 commented Jul 8, 2022

@zyedidia can you take a look at this and #23? :)

@zyedidia zyedidia merged commit ae83fa5 into zyedidia:master Jul 11, 2022
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