relude
relude copied to clipboard
Add group that returns [NonEmpty a]
It might be useful to have a group function that has more specific type.
Data.List has group :: Eq a => [a] -> [[a]].
I propose adding group :: Eq a => [a] -> [NonEmpty a] to Relude.NonEmpty and perhaps even hide the old one.