模組 Stdlib.Unit

module Unit: Unit

單位型別

type t = unit = 
| ()

單位型別。

建構子 () 包含在此處,使其擁有路徑,但不應在使用者定義的資料型別中使用。

val equal : t -> t -> bool

equal u1 u2true

val compare : t -> t -> int

compare u1 u20

val to_string : t -> string

to_string b"()"