rjNemo / underscore

🌟 Useful functional programming helpers for Go
https://underscore.onrender.com/
MIT License
110 stars 6 forks source link

Contains should require comparable, not constraints.Ordered #11

Closed Ludonope closed 2 years ago

Ludonope commented 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.

For example this function is not usable with string.

rjNemo commented 2 years ago

Thanks for pointing this out.🙏

Here is a PR addressing your comment #12