hoogle

General.Util

Synopsis

Documentation

(++?) :: String -> String -> String

Only append strings if neither one is empty

groupFsts :: Eq k => [(k, v)] -> [(k, [v])]

fold :: a -> (a -> a -> a) -> [a] -> a

fold1 :: (a -> a -> a) -> [a] -> a

halves :: [a] -> ([a], [a])

merge :: Ord a => [a] -> [a] -> [a]

mergeBy :: (a -> a -> Ordering) -> [a] -> [a] -> [a]

merges :: Ord a => [[a]] -> [a]

mergesBy :: (a -> a -> Ordering) -> [[a]] -> [a]

split :: Eq a => a -> [a] -> [[a]]

splitAtLength :: Int -> [a] -> (Int, [a], [a])

Like splitAt, but also return the number of items that were split. For performance.