module BatHeap:sig
..end
Ascribes to:
BatEnum.Enumerable with type 'a enumerable = 'a t
type +'a
t
Pervasives.compare
.val size : 'a t -> int
val empty : 'a t
val insert : 'a t -> 'a -> 'a t
val add : 'a -> 'a t -> 'a t
add x h
is the same as insert h x
. This function is intended
to be used with fold_right
.val merge : 'a t -> 'a t -> 'a t
val find_min : 'a t -> 'a
Invalid_argument
"find_min"
if the heap is emptyval del_min : 'a t -> 'a t
Invalid_argument
"del_min"
if the heap is emptyval of_list : 'a list -> 'a t
val to_list : 'a t -> 'a list
val elems : 'a t -> 'a list
to_list
.val of_enum : 'a BatEnum.t -> 'a t
val enum : 'a t -> 'a BatEnum.t
BatEnum.get
.val print : ?first:string ->
?last:string ->
?sep:string -> ('a, 'b) BatIO.printer -> ('a t, 'b) BatIO.printer
module type H =sig
..end
BatHeap.Make
module Make: