package bonsai

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Core_kernel.Univ_map.S1 with module Key = Core_kernel.Univ_map.Type_id_key and type ('w, 'a) data := ('a, 'w) Incremental.t
type 's t

The 's parameter is shared across all values stored in the map.

val sexp_of_t : ('s -> Ppx_sexp_conv_lib.Sexp.t) -> 's t -> Ppx_sexp_conv_lib.Sexp.t
val invariant : _ t -> Base.Unit.t
val empty : _ t
val is_empty : _ t -> Base.Bool.t
val set : 's t -> 'a Key.t -> ('a, 's) Incremental.t -> 's t
val mem : _ t -> _ Key.t -> Base.Bool.t
val find : 's t -> 'a Key.t -> ('a, 's) Incremental.t Base.Option.t
val find_exn : 's t -> 'a Key.t -> ('a, 's) Incremental.t
val add : 's t -> 'a Key.t -> ('a, 's) Incremental.t -> [ `Ok of 's t | `Duplicate ]
val add_exn : 's t -> 'a Key.t -> ('a, 's) Incremental.t -> 's t
val change : 's t -> 'a Key.t -> f: (('a, 's) Incremental.t Base.Option.t -> ('a, 's) Incremental.t Base.Option.t) -> 's t
val change_exn : 's t -> 'a Key.t -> f:(('a, 's) Incremental.t -> ('a, 's) Incremental.t) -> 's t
val update : 's t -> 'a Key.t -> f:(('a, 's) Incremental.t Base.Option.t -> ('a, 's) Incremental.t) -> 's t
val remove : 's t -> 'a Key.t -> 's t
val remove_by_id : 's t -> Core_kernel.Type_equal.Id.Uid.t -> 's t
module Packed : sig ... end
val to_alist : 's t -> 's Packed.t Base.List.t
val of_alist_exn : 's Packed.t Base.List.t -> 's t
OCaml

Innovation. Community. Security.