package containers

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CCUnitSource

include module type of struct include Unit end

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.