Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- groupSort :: Ord a => (a -> [a] -> b) -> [a] -> [b]
- groupSortWith :: (a -> a -> Ordering) -> (a -> [a] -> b) -> [a] -> [b]
Documentation
groupSort :: Ord a => (a -> [a] -> b) -> [a] -> [b] Source #
sort a list of elements with a stable sort, grouping together the equal elements with the argument grouping function
groupSortWith :: (a -> a -> Ordering) -> (a -> [a] -> b) -> [a] -> [b] Source #
sort a list of elements with a stable sort, using the argument
compare
function determine the ordering, grouping together the
equal elements with the grouping function