iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Algorithm.BinarySearch

Synopsis

Documentation

lowerBoundM :: Monad m => Int -> Int -> (Int -> m Bool) -> m Int Source #

assert (p high)

upperBoundM :: Monad m => Int -> Int -> (Int -> m Bool) -> m Int Source #

assert (p low)

lowerBound :: Int -> Int -> (Int -> Bool) -> Int Source #

assert (p high)

upperBound :: Int -> Int -> (Int -> Bool) -> Int Source #

assert (p low)

lowerBoundDouble :: Double -> Double -> (Double -> Bool) -> Double Source #

assert (p high)

upperBoundDouble :: Double -> Double -> (Double -> Bool) -> Double Source #

assert (p low)