package core-and-more

  1. Overview
  2. Docs
type key
type 'a t
val create : int -> 'a t
val empty : unit -> 'a t
val find_opt : key -> 'a t -> 'a option
val add : key -> 'a -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val fold2 : (key -> 'a -> key -> 'b -> 'c -> 'c) -> 'a t -> 'b t -> 'c -> 'c
val iter : (key -> 'a -> unit) -> 'a t -> unit
val copy : 'a t -> 'a t
val find_or_add : key -> (unit -> 'a) -> 'a t -> 'a