1Stdlib.Unit(3) OCaml library Stdlib.Unit(3)
2
3
4
6 Stdlib.Unit - no description
7
9 Module Stdlib.Unit
10
12 Module Unit
13 : (module Stdlib__Unit)
14
15
16
17
18
19
20
21
22
23 The unit type
24 type t = unit =
25 | ()
26
27
28 The unit type.
29
30 The constructor () is included here so that it has a path, but it is
31 not intended to be used in user-defined data types.
32
33
34
35 val equal : t -> t -> bool
36
37
38 equal u1 u2 is true .
39
40
41
42 val compare : t -> t -> int
43
44
45 compare u1 u2 is 0 .
46
47
48
49 val to_string : t -> string
50
51
52 to_string b is "()" .
53
54
55
56
57
58OCamldoc 2023-07-20 Stdlib.Unit(3)