Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Miscellaneous polymorphic operations on
Foldable
types.
Functions
gather :: (Foldable foldable, Ord a) => foldable a -> [[a]] Source #
A specific instance of gatherBy
.
:: (Foldable foldable, Ord b) | |
=> (a -> b) | Function to apply before testing for equality. |
-> foldable a | The input data. |
-> [[a]] |
- Group equal (though not necessarily adjacent; cf.
groupBy
) elements, according to the specified comparator. - The groups are returned in ascending order, whilst their elements remain in their original order.