package records

  1. Overview
  2. Docs

Polymorphic identifiers.

type 'a t

The type of identifiers associated to type 'a.

  • deprecated This type has been moved to Record.Polid
val fresh : unit -> 'a t

Make a new, fresh identifier. This is the only way to obtain a value of type t.

  • deprecated This value has been moved to Record.Polid
type (_, _) equal =
  1. | Equal : ('a, 'a) equal
  2. | Different : ('a, 'b) equal

Type constraint which is conditioned on identifier equality.

  • deprecated This type has been moved to Record.Polid
val equal : 'a t -> 'b t -> ('a, 'b) equal

Equality predicate.

  • deprecated This value has been moved to Record.Polid
val to_int : 'a t -> int

Convert an identifier to an integer. The integer is guaranteed to be unique for each call to fresh.

  • deprecated This value has been moved to Record.Polid
val is_equal : 'a t -> 'b t -> bool

equal projected to a plain bool.

  • deprecated This value has been moved to Record.Polid
OCaml

Innovation. Community. Security.