-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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.groupByNelA #3432
Merged
Merged
NonEmptyList.groupByNelA #3432
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5c64869
adding groupByNelA implementation
pk044 3bb21f8
adding groupByNelA documentation
pk044 6bc955d
adding groupByNelA test for consistency with groupByNel
pk044 fccaa58
Merge branch 'master' of https://github.com/typelevel/cats into group…
pk044 3d9b795
formatting
pk044 4ca92bb
use Functor[SortedMap[B, ?]].map instead of mapValues
pk044 026b5b3
replacing `?` with `*`
pk044 14a0f3d
more readable documentation
pk044 c131bf8
reordered implicits
pk044 f0f5b8f
functor instance moved out of fold
pk044 0f6aadd
formatting
4a67159
fixed doctest
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw you don't need to do any explicit assertions here, you could just do
which will be a little less noise for the reader, while still asserting that the resulting expression is the same as what you typed. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, this one is pretty interesting
this seems to fail only on Scala 2.13.1 🤔 works for me locally and on the rest of Scala versions https://travis-ci.org/github/typelevel/cats/builds/691476028
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works for you locally on 2.13?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.12.10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quite not sure how to approach this - is there anything I can do to work it out or should I just stay with the explicit assertion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an issue with
toString
changing for some collection types between 2.12 and 2.13. Unfortunately I think you have to do something like this: #3155