HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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)