Source

spotlib / lib / xhashtbl.mli

The default branch has multiple heads

Full commit
1
2
3
4
5
6
7
8
val replace_list : ('a, 'b) Hashtbl.t -> ('a * 'b) list -> unit
val of_list      : int -> ('a * 'b) list -> ('a, 'b) Hashtbl.t
val to_list      : ('a, 'b) Hashtbl.t -> ('a * 'b) list
val find_opt     : ('a, 'b) Hashtbl.t -> 'a -> 'b option
val find_default : 'b -> ('a, 'b) Hashtbl.t -> 'a -> 'b
val find_or_add  : ('a -> 'b) -> ('a, 'b) Hashtbl.t -> 'a -> 'b
val alter        : ('a, 'b) Hashtbl.t -> 'a -> ('b option -> 'b option) -> unit
val memoize      : ('a, 'b) Hashtbl.t -> ('a -> 'b) -> 'a -> 'b