Ordered_hash_map_gen
Hash based datastrucure which does not support remove
, so that the adding order is strict and continous
module type S = sig ... end
val create : int -> ('a, 'b) t
val clear : ('a, 'b) t -> unit
val reset : ('a, 'b) t -> unit
val length : ('a, 'b) t -> int
val iter : ('a, 'b) t -> ('c -> 'd -> int -> 'e) -> unit
val choose : ('a, 'b) t -> 'c
val to_sorted_array : ('a, 'b) t -> 'c array
val fold : ('a, 'b) t -> 'c -> ('d -> 'e -> int -> 'f -> 'g) -> 'h
val elements : ('a, 'b) t -> 'c list
val bucket_length : int -> ('a, 'b) bucket -> int