package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 4.14.0

Install

Dune Dependency

Authors

Maintainers

Sources

4.14.0.tar.gz
sha256=39f44260382f28d1054c5f9d8bf4753cb7ad64027da792f7938344544da155e8

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.

On This Page
  1. The unit type