package containers-data

  1. Overview
  2. Docs
A set of advanced datatypes for containers

Install

Dune Dependency

Authors

Maintainers

Sources

v3.5.1.tar.gz
md5=2c4ada818bacf65c893aa7792a8d7abc
sha512=309856cc438367ff962ea1bddeb4a0a6cce5b3d32bf482e148276d17022b3549e809d5ceb0a441bd649feaf4d90aa0b16c97e4d241d1d21bb3a07834a963eb1b

doc/containers-data/CCMutHeap_intf/module-type-S/index.html

Module type CCMutHeap_intf.SSource

Sourcetype elt

Type of elements

Sourcetype t

Heap of elt, whose priority is increased or decreased incrementally (see decrease for instance)

Sourceval create : unit -> t

Create a heap

Sourceval decrease : t -> elt -> unit

decrease h x decreases the value associated to x within h

Sourceval increase : t -> elt -> unit

increase h x increases the value associated to x within h

Sourceval in_heap : elt -> bool
Sourceval size : t -> int

Number of integers within the heap

Sourceval is_empty : t -> bool
Sourceval clear : t -> unit

Clear the content of the heap

Sourceval insert : t -> elt -> unit

Insert a new element into the heap

Sourceval remove_min : t -> elt

Remove and return the integer that has the lowest value from the heap

Sourceval filter : t -> (elt -> bool) -> unit

Filter out values that don't satisfy the predicate

OCaml

Innovation. Community. Security.