Module String.MapSource

include sig ... end
Sourcetype key = string
Sourcetype !+'a t
Sourceval empty : 'a t
Sourceval add : key:key -> data:'a -> 'a t -> 'a t
Sourceval add_to_list : key:key -> data:'a -> 'a list t -> 'a list t
Sourceval update : key:key -> f:('a option -> 'a option) -> 'a t -> 'a t
Sourceval singleton : key -> 'a -> 'a t
Sourceval remove : key -> 'a t -> 'a t
Sourceval merge : f:(key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
Sourceval union : f:(key -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
Sourceval cardinal : 'a t -> int
Sourceval bindings : 'a t -> (key * 'a) list
Sourceval min_binding : 'a t -> key * 'a
Sourceval min_binding_opt : 'a t -> (key * 'a) option
Sourceval max_binding : 'a t -> key * 'a
Sourceval max_binding_opt : 'a t -> (key * 'a) option
Sourceval choose : 'a t -> key * 'a
Sourceval choose_opt : 'a t -> (key * 'a) option
Sourceval find : key -> 'a t -> 'a
Sourceval find_opt : key -> 'a t -> 'a option
Sourceval find_first : f:(key -> bool) -> 'a t -> key * 'a
Sourceval find_first_opt : f:(key -> bool) -> 'a t -> (key * 'a) option
Sourceval find_last : f:(key -> bool) -> 'a t -> key * 'a
Sourceval find_last_opt : f:(key -> bool) -> 'a t -> (key * 'a) option
Sourceval iter : f:(key:key -> data:'a -> unit) -> 'a t -> unit
Sourceval fold : f:(key:key -> data:'a -> 'acc -> 'acc) -> 'a t -> init:'acc -> 'acc
Sourceval map : f:('a -> 'b) -> 'a t -> 'b t
Sourceval mapi : f:(key -> 'a -> 'b) -> 'a t -> 'b t
Sourceval filter : f:(key -> 'a -> bool) -> 'a t -> 'a t
Sourceval filter_map : f:(key -> 'a -> 'b option) -> 'a t -> 'b t
Sourceval partition : f:(key -> 'a -> bool) -> 'a t -> 'a t * 'a t
Sourceval split : key -> 'a t -> 'a t * 'a option * 'a t
Sourceval is_empty : 'a t -> bool
Sourceval mem : key -> 'a t -> bool
Sourceval equal : cmp:('a -> 'a -> bool) -> 'a t -> 'a t -> bool
Sourceval compare : cmp:('a -> 'a -> int) -> 'a t -> 'a t -> int
Sourceval for_all : f:(key -> 'a -> bool) -> 'a t -> bool
Sourceval exists : f:(key -> 'a -> bool) -> 'a t -> bool
Sourceval to_seq : 'a t -> (key * 'a) Seq.t
Sourceval to_rev_seq : 'a t -> (key * 'a) Seq.t
Sourceval to_seq_from : key -> 'a t -> (key * 'a) Seq.t
Sourceval add_seq : (key * 'a) Seq.t -> 'a t -> 'a t
Sourceval of_seq : (key * 'a) Seq.t -> 'a t
Sourceval of_list : (key * 'a) list -> 'a t
Sourceval to_list : 'a t -> (key * 'a) list
Sourceval keys : 'a t -> key list
Sourceval values : 'a t -> 'a list
Sourceval add_multiple : key -> 'a -> 'a list t -> 'a list t