package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Object_counter : sig ... end
val nearest_leq : arr:'a -> get:('b -> int -> 'c) -> lo:int -> hi:int -> key:'d -> [> `All_gt_key | `Some of int ]

nearest_leq ~arr ~get ~lo ~hi ~key returns the nearest entry in the sorted arr that is <= the given key. Routine is based on binary search.

OCaml

Innovation. Community. Security.