-
-
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
Add NonEmptyList.fromListGroupBy #2157
Comments
That function already exists here: https://github.com/typelevel/cats/blob/master/core/src/main/scala/cats/syntax/list.scala :) |
Ah, thank you very much, @LukaJCB. I was looking in |
...and even in 0.9.0. SIgh. |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Name probably can be improved (
fromListGroupedBy
?), implementation needs to be improved for sure - I and will be happy to work on it if feature looks useful for someone. Basically idea is following:We always know that if
List[A]
is not empty then values inMap
will beNonEmptyList
.This also can be implemented along with #2141 as there's clear connection between two structures.
The text was updated successfully, but these errors were encountered: