module BatHeap:Functional heaps over ordered typessig
..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
val del_min : 'a t -> 'a t
val 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 BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output -> 'b t -> unit
val t_printer : 'a BatValue_printer.t -> 'a t BatValue_printer.t
BatValue_printer
.module type H =sig
..end
BatHeap.Make
module Make: