| Maintainer | hapytexeu+gh@gmail.com |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.List.Group
Contents
Description
A module that defines functions that groups a list of elements into subsequences.
Grouping with the key
Arguments
| :: Eq b | |
| => (a -> b) | The given mapping function. |
| -> [a] | The list of items to group into non-empty sequences. |
| -> [(b, NonEmpty a)] | The list of groups. |
Group the given list of items to a list of NonEmpty 2-tuples with the
"key" and the value for a given mapping function.
Arguments
| :: (b -> b -> Bool) | The given equivalence relation. |
| -> (a -> b) | The given mapping function. |
| -> [a] | The list of items to group into non-empty sequences. |
| -> [(b, NonEmpty a)] | The list of groups. |
Group the given list of items to a list of NonEmpty 2-tuples with the
"key" and the value for a given mapping function and equavalence relation.