benbjohnson / immutable

Immutable collections for Go
MIT License
713 stars 32 forks source link

Add additional hashers & comparers. #12

Closed benbjohnson closed 4 years ago

benbjohnson commented 4 years ago

This pull request adds all int & uint type hashers & comparers. It also provides reflection-based hashers & comparers for int, uint, & string types that are wrapped with a different named type.

Note: This is a refactor of #11 that keeps the existing built-in hasher/comparers, expands them to include all int/uint types, and adds reflection-based hasher/comparers.

Closes https://github.com/benbjohnson/immutable/pull/11