HashMap.String
Specalized when key type is string
, more efficient than the generic type
val make : hintSize:int -> 'b t
val clear : 'b t -> unit
val isEmpty : _ t -> bool
setDone tbl k v
if k
does not exist, add the binding k,v
, otherwise, update the old value with the new v
val forEachU : 'b t -> (key -> 'b -> unit) Js.Fn.arity2 -> unit
val reduceU : 'b t -> 'c -> ('c -> key -> 'b -> 'c) Js.Fn.arity3 -> 'c
val keepMapInPlaceU : 'a t -> (key -> 'a -> 'a option) Js.Fn.arity2 -> unit
val size : _ t -> int
val valuesToArray : 'a t -> 'a array
val getBucketHistogram : _ t -> int array
val logStats : _ t -> unit