package containers-data

  1. Overview
  2. Docs

Module CCHet.TblSource

Imperative table indexed by Key

Sourcetype t
Sourceval create : ?size:int -> unit -> t
Sourceval mem : t -> _ Key.t -> bool
Sourceval add : t -> 'a Key.t -> 'a -> unit
Sourceval remove : t -> _ Key.t -> unit
Sourceval length : t -> int
Sourceval find : t -> 'a Key.t -> 'a option
Sourceval clear : t -> unit

clear the table (like Hashtbl.clear)

  • since 3.11
Sourceval reset : t -> unit

reset the table (like Hashtbl.reset)

  • since 3.11
Sourceval find_exn : t -> 'a Key.t -> 'a
  • raises Not_found

    if the key is not in the table.

Sourceval iter : (pair -> unit) -> t -> unit
Sourceval to_iter : t -> pair iter
Sourceval of_iter : pair iter -> t
Sourceval add_iter : t -> pair iter -> unit
Sourceval add_list : t -> pair list -> unit
Sourceval of_list : pair list -> t
Sourceval to_list : t -> pair list
OCaml

Innovation. Community. Security.