HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulehw-prim-0.6.3.2Haskell2010

HaskellWorks.Data.Search

  • 1 value
  • Packagehw-prim-0.6.3.2
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSearch.hs
valuebinarySearch :: (Ord a, Integral n) => a -> (n -> a) -> n -> n -> n
#

Perform a binary search in the domain of function f, bounded by the values p and q to find the least value v such that: @w <= (f v)