Skip to content
New issue

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

NonEmptyList#groupBy uses universal equality #1959

Closed
durban opened this issue Oct 10, 2017 · 2 comments
Closed

NonEmptyList#groupBy uses universal equality #1959

durban opened this issue Oct 10, 2017 · 2 comments

Comments

@durban
Copy link
Contributor

durban commented Oct 10, 2017

NonEmptyList#groupBy uses universal equality, while we have Eq. This seems strange.

@johnynek
Copy link
Contributor

johnynek commented Oct 10, 2017 via email

igstan added a commit to igstan/cats that referenced this issue Oct 11, 2017
igstan added a commit to igstan/cats that referenced this issue Oct 11, 2017
igstan added a commit to igstan/cats that referenced this issue Oct 11, 2017
kailuowang pushed a commit that referenced this issue Oct 13, 2017
* Require an Order instance for NonEmptyList's groupBy function

This addresses: #1959

* There's no mutable TreeMap before Scala 2.12; use only immutable

* Don't use `mapValues`, as per code review comments

#1964

* Have NonEmptyList.groupBy return a SortedMap instead of just a Map

* Have List.groupByNel return a SortedMap as well
@durban
Copy link
Contributor Author

durban commented Oct 16, 2017

Fixed by #1964.

@durban durban closed this as completed Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants