package batteries
A community-maintained standard library extension
Install
dune-project
Dependency
Authors
Maintainers
Sources
v3.2.0.tar.gz
sha256=00f34b9aed4e47f314425b2ca9ceac206f112095a17ea9a7ffa6dac8cfccc492
md5=066051f9a210277710c54ad57c3b9568
doc/batteries.unthreaded/BatHeap/Make/index.html
Module BatHeap.Make
Functorized heaps over arbitrary orderings. All the functions have the same complexity as the non-functorized versions.
Parameters
module Ord : BatInterfaces.OrderedType
Signature
type elem = Ord.t
Type of elements of the heap
val empty : t
Type of the heap
See BatHeap.empty
.
val size : t -> int
See BatHeap.empty
.
See BatHeap.size
.
See BatHeap.size
.
See BatHeap.add
.
See BatHeap.add
.
See BatHeap.insert
.
See BatHeap.insert
.
See BatHeap.merge
.
See BatHeap.merge
.
See BatHeap.find_min
.
See BatHeap.find_min
.
See BatHeap.del_min
.
See BatHeap.del_min
.
See BatHeap.of_list
.
See BatHeap.of_list
.
See BatHeap.to_list
.
See BatHeap.to_list
.
See BatHeap.of_enum
.
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.enum
.
See BatHeap.print
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page