package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.0.tar.gz
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b

doc/coq-core.clib/Heap/Functional/index.html

Module Heap.FunctionalSource

Parameters

module X : Ordered

Signature

Sourcetype t

Type of functional heaps

Sourcetype elt = X.t

Type of elements

Sourceval empty : t

The empty heap

Sourceval add : elt -> t -> t

add x h returns a new heap containing the elements of h, plus x; complexity $ O(log(n)) $

Sourceval maximum : t -> elt

maximum h returns the maximum element of h; raises EmptyHeap when h is empty; complexity $ O(1) $

Sourceval remove : t -> t

remove h returns a new heap containing the elements of h, except the maximum of h; raises EmptyHeap when h is empty; complexity $ O(log(n)) $

Sourceval iter : (elt -> unit) -> t -> unit

usual iterators and combinators; elements are presented in arbitrary order

Sourceval fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
OCaml

Innovation. Community. Security.