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

ideas: single value variants of MapContainsValue(s) helpers #135

Closed
shoenig opened this issue May 13, 2023 · 0 comments · Fixed by #151
Closed

ideas: single value variants of MapContainsValue(s) helpers #135

shoenig opened this issue May 13, 2023 · 0 comments · Fixed by #151
Labels
enhancement New feature or request

Comments

@shoenig
Copy link
Owner

shoenig commented May 13, 2023

Basically just single Value versions of each of

462:func MapContainsValues[M ~map[K]V, K comparable, V any](t T, m M, vals []V, settings ...Setting) {
474:func MapContainsValuesFunc[M ~map[K]V, K comparable, V any](t T, m M, vals []V, eq func(V, V) bool, settings ...Setting) {
486:func MapContainsValuesEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](t T, m M, vals []V, settings ...Setting) {

so that we don't need to pass in a slice of values if we're just looking for one. And fix the function signature for the Func variant like on #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant