package tablecloth-native

  1. Overview
  2. Docs
type key = string
type 'value t = 'value Base.Map.M(Base.String).t
val toList : 'a t -> (key * 'a) list
val to_list : 'a t -> (key * 'a) list
val empty : 'a t
val fromList : (key * 'value) list -> 'value t
val from_list : (key * 'value) list -> 'value t
val get : key:key -> 'value t -> 'value option
val insert : key:key -> value:'value -> 'value t -> 'value t
val keys : 'a t -> key list
val update : key:key -> f:('value option -> 'value option) -> 'value t -> 'value t
val map : 'a t -> f:('a -> 'b) -> 'b t
val pp : (Stdlib.Format.formatter -> 'value -> unit) -> Stdlib.Format.formatter -> 'value t -> unit
val merge : f:(key -> 'v1 option -> 'v2 option -> 'v3 option) -> 'v1 t -> 'v2 t -> 'v3 t