module Unit: Unit
Unit
type t = unit =
unit
|
()
單位型別。
建構子 () 包含在此處,使其擁有路徑,但不應在使用者定義的資料型別中使用。
val equal : t -> t -> bool
t -> t -> bool
equal u1 u2 為 true。
equal u1 u2
true
val compare : t -> t -> int
t -> t -> int
compare u1 u2 為 0。
compare u1 u2
0
val to_string : t -> string
t -> string
to_string b 為 "()"。
to_string b
"()"