BatHeap.Make
Functorized heaps over arbitrary orderings. All the functions have the same complexity as the non-functorized versions.
module Ord : BatInterfaces.OrderedType
type elem = Ord.t
Type of elements of the heap
val empty : t
See BatHeap.empty
.
val size : t -> int
See BatHeap.size
.
See BatHeap.add
.
See BatHeap.insert
.
See BatHeap.merge
.
See BatHeap.find_min
.
See BatHeap.del_min
.
See BatHeap.of_list
.
See BatHeap.to_list
.
See BatHeap.of_enum
.
See BatHeap.enum
.
val print : ?first:string -> ?last:string -> ?sep:string -> (elem, 'a) BatIO.printer -> (t, 'a) BatIO.printer
See BatHeap.print
.