Cap.Labels
Operations on BatHashtbl.Cap
with labels.
val add : ('a, 'b, [> `Write ]) t -> key:'a -> data:'b -> unit
val replace : ('a, 'b, [> `Write ]) t -> key:'a -> data:'b -> unit
val iter : f:(key:'a -> data:'b -> unit) -> ('a, 'b, [> `Read ]) t -> unit
val map_inplace : f:(key:'a -> data:'b -> 'b) -> ('a, 'b, [> `Write ]) t -> unit
val filter_inplace : f:('a -> bool) -> ('key, 'a, [> `Write ]) t -> unit
val filteri_inplace : f:(key:'key -> data:'a -> bool) ->
('key, 'a, [> `Write ]) t -> unit
val filter_map_inplace : f:(key:'key -> data:'a -> 'a option) ->
('key, 'a, [> `Write ]) t -> unit
val fold : f:(key:'a -> data:'b -> 'c -> 'c) -> ('a, 'b, [> `Read ]) t -> init:'c -> 'c