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

groupWith? #135

Open
AlexMouton opened this issue Feb 17, 2018 · 2 comments
Open

groupWith? #135

AlexMouton opened this issue Feb 17, 2018 · 2 comments
Labels
type: enhancement A new feature or addition.

Comments

@AlexMouton
Copy link

i see sortBy/sortWith, but only groupBy.
Minor convenience but it would be nicely parallel, and this missing one is often what I want: Theres no new logic, I just need to dive into some structure.

@JordanMartinez
Copy link
Contributor

Pretty sure we can close this now. groupWith was added recently under the name groupAllBy

@hdgarrood
Copy link
Contributor

hdgarrood commented Jan 1, 2021

I don't think so; groupWith would be something like forall a b. Ord b => (a -> b) -> Array a -> Array (NonEmptyArray a). It would be a shorthand for \f -> groupBy (compare `on` f) or something similar.

@JordanMartinez JordanMartinez added the type: enhancement A new feature or addition. label Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A new feature or addition.
Projects
None yet
Development

No branches or pull requests

3 participants