package containers

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

containers-3.17.tbz
sha256=0f70824867269c02bf01ae12206aa47a6f669d69f1954c19e68ece9f444f1cba
sha512=11de2d7b7173659e6b83c487ac116a93d4b780b86da07386e7604f8fd45f6841e93cba59dba59ed7dbf6e1bc26561202ae1d2e7238a12f588dfd557d4f2da589

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 takes a TOTAL_ORD instead of a partially ordered module. It allows to directly pass modules that implement compare without implementing leq explicitly.