1Hashtbl.S(3) OCaml library Hashtbl.S(3)
2
3
4
6 Hashtbl.S - The output signature of the functor Hashtbl.Make.
7
9 Module type Hashtbl.S
10
12 Module type S
13 = sig end
14
15
16 The output signature of the functor Hashtbl.Make .
17
18
19
20
21
22 type key
23
24
25
26
27 type 'a t
28
29
30
31
32
33 val create : int -> 'a t
34
35
36
37
38 val clear : 'a t -> unit
39
40
41
42
43 val reset : 'a t -> unit
44
45 Since 4.00.0
46
47
48
49 val copy : 'a t -> 'a t
50
51
52
53
54 val add : 'a t -> key -> 'a -> unit
55
56
57
58
59 val remove : 'a t -> key -> unit
60
61
62
63
64 val find : 'a t -> key -> 'a
65
66
67
68
69 val find_opt : 'a t -> key -> 'a option
70
71 Since 4.05.0
72
73
74
75 val find_all : 'a t -> key -> 'a list
76
77
78
79
80 val replace : 'a t -> key -> 'a -> unit
81
82
83
84
85 val mem : 'a t -> key -> bool
86
87
88
89
90 val iter : (key -> 'a -> unit) -> 'a t -> unit
91
92
93
94
95 val filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unit
96
97 Since 4.03.0
98
99
100
101 val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
102
103
104
105
106 val length : 'a t -> int
107
108
109
110
111 val stats : 'a t -> Hashtbl.statistics
112
113 Since 4.00.0
114
115
116
117 val to_seq : 'a t -> (key * 'a) Seq.t
118
119 Since 4.07
120
121
122
123 val to_seq_keys : 'a t -> key Seq.t
124
125 Since 4.07
126
127
128
129 val to_seq_values : 'a t -> 'a Seq.t
130
131 Since 4.07
132
133
134
135 val add_seq : 'a t -> (key * 'a) Seq.t -> unit
136
137 Since 4.07
138
139
140
141 val replace_seq : 'a t -> (key * 'a) Seq.t -> unit
142
143 Since 4.07
144
145
146
147 val of_seq : (key * 'a) Seq.t -> 'a t
148
149 Since 4.07
150
151
152
153
154
155OCamldoc 2021-01-26 Hashtbl.S(3)