package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

containers-3.13.tbz
sha256=372df86e2a41e86c959c28a3392eb2ffd89754d1e5af2aaa09537654af57b1da
sha512=7d87d44065612095fa0342a9c95a2c4cfdf73d5af47c6fce24262cf2870c36dee70ebecd056113aa9c1643256bc032c08530f5083061c44602c0da5a132c2d6c

doc/containers/CCHeap/index.html

Module CCHeapSource

Leftist Heaps

Implementation following Okasaki's book.

Sourcetype 'a iter = ('a -> unit) -> unit

Fast internal iterator.

  • since 2.8
Sourcetype 'a gen = unit -> 'a option
Sourcetype 'a ktree = unit -> [ `Nil | `Node of 'a * 'a ktree list ]
Sourcetype 'a printer = Format.formatter -> 'a -> unit
Sourcemodule type PARTIAL_ORD = sig ... end
Sourcemodule type TOTAL_ORD = sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (E : PARTIAL_ORD) : S with type elt = E.t
Sourcemodule Make_from_compare (E : TOTAL_ORD) : S with type elt = E.t

A convenient version of Make that take a TOTAL_ORD instead of a partially ordered module. It allow to directly pass modules that implement compare without implementing leq explicitly

OCaml

Innovation. Community. Security.