stdlib
Stdlib.Unit
Unit values.
compiler-libs.bytecomp
compiler-libs.common
compiler-libs.optcomp
compiler-libs.toplevel
dynlink
eval
jit
runtime_events
stdlib_alpha
stdlib_beta
stdlib_stable
stdlib_upstream_compatible
str
threads
unix
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 @@ portable
equal u1 u2 is true.
equal u1 u2
true
val compare : t -> t -> int @@ portable
compare u1 u2 is 0.
compare u1 u2
0
val to_string : t -> string @@ portable
to_string b is "()".
to_string b
"()"