Source file hashtbl_intf.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module type S = sig
include MoreLabels.Hashtbl.S
val add : 'a t -> key -> 'a -> unit
val find : 'a t -> key -> 'a option
val find_exn : 'a t -> key -> 'a
val find_or_add : 'a t -> key -> f:(key -> 'a) -> 'a
val fold : 'a t -> init:'b -> f:('a -> 'b -> 'b) -> 'b
val foldi : 'a t -> init:'b -> f:(key -> 'a -> 'b -> 'b) -> 'b
val of_list_exn : (key * 'a) list -> 'a t
end