package dolmen

  1. Overview
  2. Docs

A module for variables that occur in terms.

type t

The type of variables the can occur in terms

val compare : t -> t -> int

Comparison function on variables.

val mk : string -> ty -> t

Create a new typed variable.

val ty : t -> ty

Return the type of the variable.

val get_tag : t -> 'a tag -> 'a option

Return the value bound to a tag (if any).

val set_tag : t -> 'a tag -> 'a -> unit

Set the value bound to the tag.

val unset_tag : t -> _ tag -> unit

Remove the binding to the given tag.

OCaml

Innovation. Community. Security.