protolude-0.3.0: A small prelude.

Safe HaskellSafe
LanguageHaskell2010

Protolude.List

Synopsis

Documentation

head :: Foldable f => f a -> Maybe a Source #

ordNub :: Ord a => [a] -> [a] Source #

sortOn :: Ord o => (a -> o) -> [a] -> [a] Source #

list :: [b] -> (a -> b) -> [a] -> [b] Source #

product :: (Foldable f, Num a) => f a -> a Source #

sum :: (Foldable f, Num a) => f a -> a Source #

groupBy :: (a -> a -> Bool) -> [a] -> [[a]] #

The groupBy function is the non-overloaded version of group.