- findMax :: (Fractional a, Ord a) => (a -> Bool) -> a
- findMaxFrom :: (Fractional a, Ord a) => a -> a -> (a -> Bool) -> a
- findMin :: (Fractional a, Ord a) => (a -> Bool) -> a
- findMinFrom :: (Fractional a, Ord a) => a -> a -> (a -> Bool) -> a

# Documentation

findMax :: (Fractional a, Ord a) => (a -> Bool) -> aSource

findMaxFrom :: (Fractional a, Ord a) => a -> a -> (a -> Bool) -> aSource

findMin :: (Fractional a, Ord a) => (a -> Bool) -> aSource

Given an upward-closed predicate on an ordered Fractional type, find the smallest value satisfying the predicate.

findMinFrom :: (Fractional a, Ord a) => a -> a -> (a -> Bool) -> aSource