package grenier

  1. Overview
  2. Docs
A collection of various algorithms in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

grenier-0.17.tbz
sha256=adce547fae9b5648d902d91173bb787466a197f81610b76757424ab33980e625
sha512=dccce42254660831fbd45129718ce01d2a4fcf10d05fa40f10eb3be4e5c94300af7235cc88c76b2e5aff7a02b8a1e8e6150d2d3376d8b630911d1dc6247b7df6

doc/grenier.maxtrie/Maxtrie/PatMapSharing/Sharing/index.html

Module PatMapSharing.SharingSource

Comparisons with sharing. Sharing.equal eq and Sharing.compare cmp return the same results as equal eq and compare cmp, but as a side effect they make the equal subtrees of their arguments physically equal. Later comparisons of these maps are then faster, and duplicate subtrees can be reclaimed. A subtree is replaced with one whose values are related by eq (or cmp returns 0): use these functions only when such values are interchangeable, for instance with a structural equality. This is invisible to the other operations and safe with concurrent domains.

Sourceval equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
Sourceval compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int