module Hashtbl: sig end
type ('a, 'b)
t
New Functions
|
val exists : ('a, 'b) t -> 'a -> bool
exists h k
returns true is at least one item with key k
is
found in the hashtable.val keys : ('a, 'b) t -> 'a Enum.t
val values : ('a, 'b) t -> 'b Enum.t
val enum : ('a, 'b) t -> ('a * 'b) Enum.t
val of_enum : ('a * 'b) Enum.t -> ('a, 'b) t
val find_default : ('a, 'b) t -> 'a -> 'b -> 'b
val find_option : ('a, 'b) Hashtbl.t -> 'a -> 'b option
None
if no
value is foundval remove_all : ('a, 'b) t -> 'a -> unit
val map : ('a -> 'b) -> ('c, 'a) t -> ('c, 'b) t
map 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) t
val clear : ('a, 'b) t -> unit
val add : ('a, 'b) t -> 'a -> 'b -> unit
val copy : ('a, 'b) t -> ('a, 'b) t
val find : ('a, 'b) t -> 'a -> 'b
val find_all : ('a, 'b) t -> 'a -> 'b list
val mem : ('a, 'b) t -> 'a -> bool
val remove : ('a, 'b) t -> 'a -> unit
val replace : ('a, 'b) t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) t -> 'c -> 'c
val hash : 'a -> int