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