package octez-internal-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Object_counter : sig ... end
val nearest_geq : arr:'a -> get:('a -> int -> 'b) -> lo:int -> hi:int -> key:'b -> int option

nearest_geq ~arr ~get ~lo ~hi ~key returns the index of the nearest entry in the sorted arr that is >= the given key. Routine is based on binary search.

OCaml

Innovation. Community. Security.