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/PatSet/Sharing/index.html

Module PatSet.SharingSource

Comparisons with sharing. Sharing.equal and Sharing.compare return the same results as equal and compare, but as a side effect they make the structurally equal subtrees of their arguments physically equal. This makes later comparisons of these sets faster and reduces memory usage when many equal sets are built independently. It is invisible to every other operation, and safe in the presence of concurrent domains.

Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int