Closed Ludonope closed 2 years ago
As stated in the title, Contains should require the type to be comparable and not constraints.Ordered, as it add useless type limitation.
Contains
comparable
constraints.Ordered
For example this function is not usable with string.
string
Thanks for pointing this out.🙏
Here is a PR addressing your comment #12
As stated in the title,
Contains
should require the type to becomparable
and notconstraints.Ordered
, as it add useless type limitation.For example this function is not usable with
string
.