HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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)