HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehw-prim-0.6.3.2Haskell2010

HaskellWorks.Data.Search

Synopsis
  • 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)