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

why isn't there a mapset.NewSetFromSlice method? #137

Open
ibukunoluwayomi opened this issue Apr 11, 2024 · 1 comment
Open

why isn't there a mapset.NewSetFromSlice method? #137

ibukunoluwayomi opened this issue Apr 11, 2024 · 1 comment

Comments

@ibukunoluwayomi
Copy link

Just like mapset.NewSetFromMapKeys() which is very handy. I think mapset.NewSetFromSlice will be quite helpful

@deckarep
Copy link
Owner

Hello,

I believe we used to have such methods but they've been streamlines by having some of the New* functions be variadic which means you can still pass a slice in and would just need to expand it with the .. syntax.

Let me know if that is what you're looking for.

Thanks,

-Deckarep

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

No branches or pull requests

2 participants