package batteries

  1. Overview
  2. Docs
A community-maintained standard library extension

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v3.4.0.tar.gz
md5=66b6e0b25769fc2363972c6a6ab6ac33
sha256=584d314cbaa5485e26d08ce87f7d7ff49043d9096101f2641b59def9aa6d7d71

doc/batteries.unthreaded/BatHeap/module-type-H/index.html

Module type BatHeap.H

The result of Make

type elem

Type of elements of the heap

type t

Type of the heap

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
  • deprecated

    Same as to_list.

val of_enum : elem BatEnum.t -> t
val enum : t -> elem BatEnum.t
val print : ?first:string -> ?last:string -> ?sep:string -> (elem, 'a) BatIO.printer -> (t, 'a) BatIO.printer
OCaml

Innovation. Community. Security.