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
avl.New[int, string](g.Less[int])
We should be able to use a custom comparator for sorting elements but currently that is not supported
This can be accomplished by adding the following func in the generic.go file
generic.go
func Greater[T constraints.Ordered](a, b T) bool { return a > b }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
avl.New[int, string](g.Less[int])
We should be able to use a custom comparator for sorting elements but currently that is not supported
This can be accomplished by adding the following func in the
generic.go
fileThe text was updated successfully, but these errors were encountered: