Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

groupBy Missing #437

Open
schnecki opened this issue Nov 3, 2017 · 1 comment
Open

groupBy Missing #437

schnecki opened this issue Nov 3, 2017 · 1 comment
Labels
C - collection collection stuff X - help wanted Need help from someone

Comments

@schnecki
Copy link

schnecki commented Nov 3, 2017

Hi,
I'm missing the groupBy function for lists/sequentials. Is there a reason why it's not there?

@schnecki
Copy link
Author

schnecki commented Nov 3, 2017

And why is there no instance for Foldable on NonEmpty?

instance Foldable c => Foldable (NonEmpty c) where
  foldl' f a (NonEmpty xs) = foldl' f a xs
  foldr' f a (NonEmpty xs) = foldr' f a xs

Then groupBy could be implemented. But the current NonEmpty is quite unusable.

@vincenthz vincenthz added C - collection collection stuff X - help wanted Need help from someone labels Nov 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C - collection collection stuff X - help wanted Need help from someone
Projects
None yet
Development

No branches or pull requests

2 participants