mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-09 12:23:32 -04:00
do not use exposed type in meta map
This commit is contained in:
parent
c29900d813
commit
7197950bf2
1 changed files with 6 additions and 4 deletions
|
|
@ -83,7 +83,9 @@ let remove (type a) (k : a Key.t) t =
|
|||
|
||||
let cardinal t = M.cardinal t
|
||||
let length = cardinal
|
||||
let iter f t = M.iter (fun _ p -> f (pair_of_e_pair p)) t
|
||||
let to_list t = M.fold (fun _ p l -> pair_of_e_pair p :: l) t []
|
||||
let add_list t l = List.fold_right add_pair_ l t
|
||||
let of_list l = add_list empty l
|
||||
let iter f (self : t) = M.iter (fun _ p -> f (pair_of_e_pair p)) self
|
||||
|
||||
let to_list (self : t) : binding list =
|
||||
M.fold (fun _ p l -> pair_of_e_pair p :: l) self []
|
||||
|
||||
let add_list (self : t) l = List.fold_right add_pair_ l self
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue