CurryInfo: base-3.4.0 / Data.List.maximumBy

definition: Info
 
maximumBy :: (a -> a -> Ordering) -> [a] -> a
maximumBy cmp xs@(_:_) = foldl1 maxBy xs
 where
  maxBy x y = case cmp x y of
                GT -> x
                _  -> y
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Returns the maximum of a non-empty list
according to the given comparison function
failfree: Info
 (_, {:})
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{:}) |-> _}
name: Info
 maximumBy
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 (a -> a -> Prelude.Ordering) -> [a] -> a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term