package containers-data

  1. Overview
  2. Docs

Module CCHet.MapSource

Immutable map

Sourcetype t
Sourceval empty : t
Sourceval mem : _ Key.t -> t -> bool
Sourceval add : 'a Key.t -> 'a -> t -> t
Sourceval remove : _ Key.t -> t -> t
Sourceval length : t -> int
Sourceval cardinal : t -> int
Sourceval find : 'a Key.t -> t -> 'a option
Sourceval find_exn : 'a Key.t -> 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 -> t
Sourceval add_list : t -> pair list -> t
Sourceval of_list : pair list -> t
Sourceval to_list : t -> pair list
OCaml

Innovation. Community. Security.