class [['a, 'b]]
hashmap : ?size:int -> unit ->
object
.. end
The hashmap class
val current : ('a, 'b) Hashtbl.t
The state of the hashmap.
method get : ('a, 'b) Hashtbl.t
method lookup : 'a -> 'b
Return the object bound to the given key, or raise Not_found:
method mem : 'a -> 'b -> bool
Answer (quickly!) to the question if (x,y) is a member of the map.
method memq : 'a -> 'b -> bool
Answer (quickly!) to the question if (x,y) is a member of the map.
method bound : 'a -> bool
Answer if x is bound in the map.
method add : 'a -> 'b -> unit
Add a binding to the map
method replace : 'a -> 'b -> unit
Alias for add
method remove : 'a -> unit
Remove the binding for the given key.
method to_list : ('a * 'b) list
Make an alist from the map, returning the bindings as <key, value> pairs in some
unspecified order.
method add_list : ('a * 'b) list -> unit
Add all the binding from the given alist to the map. In case of multiple values
for a single key it's undefined which value prevails.