Batteries_uni.Heap

`sig
type 'a t = 'a BatHeap.t
val size : 'a t -> int
val empty : 'a t
val insert : 'a t -> 'a -> 'a t
val add : 'a -> 'a t -> 'a t
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
val of_enum : 'a BatEnum.t -> 'a t
val enum : 'a t -> 'a BatEnum.t
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
module type H =
sig
type elem
type t
val empty : t
val size : t -> int
val insert : t -> elem -> t
val add : elem -> t -> t
val merge : t -> t -> t
val find_min : t -> elem
val del_min : t -> t
val of_list : elem list -> t
val to_list : t -> elem list
val elems : t -> elem list
val of_enum : elem BatEnum.t -> t
val enum : t -> elem BatEnum.t
val print :
?first:string ->
?last:string ->
?sep:string ->
('a BatInnerIO.output -> elem -> unit) ->
'a BatInnerIO.output -> t -> unit
val t_printer : elem BatValue_printer.t -> t BatValue_printer.t
end
module Make :
functor (Ord : BatInterfaces.OrderedType) ->
sig
type elem = Ord.t
type t = BatHeap.Make(Ord).t
val empty : t
val size : t -> int
val insert : t -> elem -> t
val add : elem -> t -> t
val merge : t -> t -> t
val find_min : t -> elem
val del_min : t -> t
val of_list : elem list -> t
val to_list : t -> elem list
val elems : t -> elem list
val of_enum : elem BatEnum.t -> t
val enum : t -> elem BatEnum.t
val print :
?first:string ->
?last:string ->
?sep:string ->
('a BatInnerIO.output -> elem -> unit) ->
'a BatInnerIO.output -> t -> unit
val t_printer : elem BatValue_printer.t -> t BatValue_printer.t
end
end`