module Hashtbl: sig endtype ('a, 'b) t
New Functions
|
val exists : ('a, 'b) t -> 'a -> boolexists h k returns true is at least one item with key k is
found in the hashtable.val keys : ('a, 'b) t -> 'a Enum.tval values : ('a, 'b) t -> 'b Enum.tval enum : ('a, 'b) t -> ('a * 'b) Enum.tval of_enum : ('a * 'b) Enum.t -> ('a, 'b) tval find_default : ('a, 'b) t -> 'a -> 'b -> 'bval find_option : ('a, 'b) Hashtbl.t -> 'a -> 'b optionNone if no
value is foundval remove_all : ('a, 'b) t -> 'a -> unitval map : ('a -> 'b) -> ('c, 'a) t -> ('c, 'b) tmap f x creates a new hashtable with the same
keys as x, but with the function f applied to
all the valuesval length : ('a, 'b) t -> int
Older Functions
|
val create : int -> ('a, 'b) tval clear : ('a, 'b) t -> unitval add : ('a, 'b) t -> 'a -> 'b -> unitval copy : ('a, 'b) t -> ('a, 'b) tval find : ('a, 'b) t -> 'a -> 'bval find_all : ('a, 'b) t -> 'a -> 'b listval mem : ('a, 'b) t -> 'a -> boolval remove : ('a, 'b) t -> 'a -> unitval replace : ('a, 'b) t -> 'a -> 'b -> unitval iter : ('a -> 'b -> unit) -> ('a, 'b) t -> unitval fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) t -> 'c -> 'cval hash : 'a -> int