Hash_heap.Make
module Key : Core_kernel.Hashtbl.Key_plain
module Key = Key
val create : ?min_size:int -> ('a -> 'a -> int) -> 'a t
val top : 'a t -> 'a option
val top_exn : 'a t -> 'a
val pop : 'a t -> 'a option
val pop_exn : 'a t -> 'a
val pop_if : 'a t -> ('a -> bool) -> 'a option
Mutation of the heap during iteration is not supported, but there is no check to prevent it. The behavior of a heap that is mutated during iteration is undefined.
val iter : 'a t -> f:('a -> unit) -> unit
Returns the list of all (key, value) pairs for given Hash_heap
.
val length : 'a t -> int