package orsetto
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=bb2af4d8b376b2d60fa996bd4d3b90d9f3559455672540f6d7c3598af81d483b
    
    
  md5=f7bfa83013801b42fcdba607af2f012b
    
    
  doc/orsetto.cf/Cf_bsearch/index.html
Module Cf_bsearch
Binary search algorithm and data structures.
Overview
This module implements generalized binary search functions along with a functorial interface that generalizes static sets and maps implemented as vectors in multiplicative binary search order. A specialization is provided for character sets and maps implemented with strings as the vector.
Types
A return finalization configuration for use with the search function (see below).
module type Basis = sig ... endUse module B: Basis = struct ... end to define a type t and associated functions that provide the operations on it required for binary searching in the range between two values of type t.
module Char_basis : Basis with type t = charThe distinguished basis for OCaml char values.
module type Profile = sig ... endThe signature of the module returned by the Create(B) functor.
General Interface
Use Create(B) to make a module that provides binary searches using the index type defined with the basis B.