base-compat-0.9.3: A compatibility layer for base

Safe HaskellSafe
LanguageHaskell98

Data.Foldable.Compat

Synopsis

Documentation

maximumBy :: Foldable t => (a -> a -> Ordering) -> t a -> a Source #

The largest element of a non-empty structure with respect to the given comparison function.

minimumBy :: Foldable t => (a -> a -> Ordering) -> t a -> a Source #

The least element of a non-empty structure with respect to the given comparison function.