| Safe Haskell | Safe | 
|---|---|
| Language | Haskell2010 | 
ToolShed.Data.Foldable
Contents
Description
AUTHOR- Dr. Alistair Ward
 DESCRIPTION- Miscellaneous polymorphic operations on 
Foldabletypes. 
Functions
gather :: (Foldable foldable, Ord a) => foldable a -> [[a]] Source #
A specific instance of gatherBy.
Arguments
| :: (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.
 - See 
groupWith,groupSortOn.