Closed YoungerLee closed 10 months ago
There already was a pull request which did this for other types: https://github.com/ugurcsen/gods-generic/pull/2
linkedhashmap.Map
has the same issue.
I have to decrease code duplication first after that I will fix this.
Can you create a pr for this issue?
I'm experiencing the same problem. This restricts the library's usefulness to comparable types only, even as a map value. It's quite strange.
Would you be willing to add a comparable interface that users can use to compare their types?
Anyway, great job! Keep up the good work!
Can you create a pr for this issue?
ok
The type constraint on parameter V in treemap is not necessary, otherwise the any value is not allowed. What I need is
but the type parameter V is limited by comparable.
Consider the following code?