package tablecloth-native

  1. Overview
  2. Docs

Module Tablecloth.IntDictSource

Sourcetype key = int
Sourcetype 'value t = 'value Base.Map.M(Base.Int).t
Sourceval toList : 'a t -> (key * 'a) list
Sourceval to_list : 'a t -> (key * 'a) list
Sourceval empty : 'a t
Sourceval fromList : (key * 'value) list -> 'value t
Sourceval from_list : (key * 'value) list -> 'value t
Sourceval get : key:key -> 'value t -> 'value option
Sourceval insert : key:key -> value:'value -> 'value t -> 'value t
Sourceval update : key:key -> f:('value option -> 'value option) -> 'value t -> 'value t
Sourceval keys : 'a t -> key list
Sourceval map : 'a t -> f:('a -> 'b) -> 'b t
Sourceval pp : (Format.formatter -> 'value -> unit) -> Format.formatter -> 'value t -> unit
Sourceval merge : f:(key -> 'v1 option -> 'v2 option -> 'v3 option) -> 'v1 t -> 'v2 t -> 'v3 t
OCaml

Innovation. Community. Security.