package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 5.2.1

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-5.2.1.tar.gz
sha256=2d0f8090951a97a2c0e5b8a11e90096c0e1791d2e471e4a67f87e3b974044cd0

doc/stdlib/Stdlib/Unit/index.html

Module Stdlib.UnitSource

Unit values.

  • since 4.08

The unit type

Sourcetype t = unit =
  1. | ()

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.

Sourceval equal : t -> t -> bool

equal u1 u2 is true.

Sourceval compare : t -> t -> int

compare u1 u2 is 0.

Sourceval to_string : t -> string

to_string b is "()".

OCaml

Innovation. Community. Security.