Utils.Tree_mapA persistent map implemented as a balanced binary tree. The sexp_of function preserves and displays the tree structure.
A persistent map implemented as a balanced binary tree. The sexp_of function preserves and displays the tree structure.
val empty : ('a, 'b) tval height : ('a, 'b) t -> Base.intval balance_factor : ('a, 'b) t -> Base__Int.tval find : compare:('a -> 'b -> int) -> key:'a -> ('b, 'c) t -> 'c optionval mem : compare:('a -> 'b -> int) -> key:'a -> ('b, 'c) t -> boolval fold : ('a, 'b) t -> init:'c -> f:(key:'a -> data:'b -> 'c -> 'c) -> 'cval iter : ('a, 'b) t -> f:(key:'a -> data:'b -> unit) -> unitval to_alist : ('a, 'b) t -> ('a * 'b) Base.List.tval of_alist : compare:('a -> 'a -> int) -> ('a * 'b) Base.List.t -> ('a, 'b) tval sexp_of_t :
('a -> Base.Sexp.t) ->
('b -> Base.Sexp.t) ->
('a, 'b) t ->
Base.Sexp.tSexp conversion that preserves tree structure