We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FindKeyBy
any
Real use case: map of maps. When map's value type is another map it is not comparable, but this isn't required to run predicate function.
comparable
Example:
var m map[K1]map[K2]V2 _, found := lo.FindKeyBy(m, func(k1 K1, v1 map[K2]V2) bool { _, found := lo.FindKeyBy(v1, func(k2 K2, v2 V2) bool { return match(v2) }) return found })
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Real use case: map of maps. When map's value type is another map it is not
comparable
, but this isn't required to run predicate function.Example:
The text was updated successfully, but these errors were encountered: