Unit(3o)

Unit3o

Unit values.

Module

Module Unit

Documentation

Module Unit
: sig end

Unit values.

Since 4.08

The unit type

type t = unit =
| ()

The unit type.

The constructor () is included here so that it has a path, but it is not intended to be used in user-defined data types.

val equal : t -> t -> bool

equal u1 u2 is true .

val compare : t -> t -> int

compare u1 u2 is 0 .

val to_string : t -> string

to_string b is "()" .

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From ocaml 5.5.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.