Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- magma :: (a -> a -> a) -> NonemptyFold a a
- semigroup :: Semigroup a => NonemptyFold a a
- last :: NonemptyFold a a
- maximum :: Ord a => NonemptyFold a a
- minimum :: Ord a => NonemptyFold a a
- maximumBy :: (a -> a -> Ordering) -> NonemptyFold a a
- minimumBy :: (a -> a -> Ordering) -> NonemptyFold a a
- list :: NonemptyFold a (NonEmpty a)
- reverseList :: NonemptyFold a (NonEmpty a)
General
magma :: (a -> a -> a) -> NonemptyFold a a Source #
Start with the first input, append each new input on the right with the given function
Endpoints
last :: NonemptyFold a a Source #
The last input
Extrema
maximum :: Ord a => NonemptyFold a a Source #
The greatest input
minimum :: Ord a => NonemptyFold a a Source #
The least input
maximumBy :: (a -> a -> Ordering) -> NonemptyFold a a Source #
The greatest input with respect to the given comparison function
minimumBy :: (a -> a -> Ordering) -> NonemptyFold a a Source #
The least input with respect to the given comparison function
List
list :: NonemptyFold a (NonEmpty a) Source #
All the inputs
reverseList :: NonemptyFold a (NonEmpty a) Source #
All the inputs in reverse order