package containers

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

Install

Dune Dependency

Authors

Maintainers

Sources

v2.8.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb

doc/containers.data/CCHashTrie/Transient/index.html

Module CCHashTrie.TransientSource

Transient Identifiers

Sourcetype t

Identifiers for transient modifications. A transient modification is uniquely identified by a Transient.t. Once Transient.freeze r is called, r cannot be used to modify the structure again.

Sourceval create : unit -> t

Create a new, active ID.

Sourceval equal : t -> t -> bool

Equality between IDs.

Sourceval frozen : t -> bool

frozen i returns true if freeze i was called before. In this case, the ID cannot be used for modifications again.

Sourceval active : t -> bool

active i is not (frozen i).

Sourceval freeze : t -> unit

freeze i makes i unusable for new modifications. The values created with i will now be immutable.

Sourceval with_ : (t -> 'a) -> 'a

with_ f creates a transient ID i, calls f i, freezes the ID i and returns the result of f i.

Sourceexception Frozen

Raised when a frozen ID is used.

OCaml

Innovation. Community. Security.