table of contents
other versions
- trixie 5.3.0-3
 - testing 5.3.0-3
 - unstable 5.3.0-3
 - experimental 5.4.0-1~exp1
 
| Stdlib.Unit(3o) | OCaml library | Stdlib.Unit(3o) | 
NAME¶
Stdlib.Unit - no description
Module¶
Module Stdlib.Unit
Documentation¶
Module Unit
  
   : (module Stdlib__Unit)
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 "()" .
| 2025-06-12 | OCamldoc |