99
99
</ div >
100
100
< h1 > Module < a href ="type_Belt.HashMap.html "> Belt.HashMap</ a > </ h1 >
101
101
102
- < pre > < span class ="keyword "> module</ span > HashMap: < code class ="type "> < a href ="Belt_HashMap.html "> Belt_HashMap</ a > </ code > </ pre > < div class ="info module top ">
102
+ < pre > < span id =" MODULEHashMap " > < span class ="keyword "> module</ span > HashMap</ span > : < code class ="type "> < a href ="Belt_HashMap.html "> Belt_HashMap</ a > </ code > </ pre > < div class ="info module top ">
103
103
< div class ="not-examples ">
104
104
< a href ="Belt.HashMap.html "> < code class ="code "> Belt.HashMap</ code > </ a >
105
- < p >
106
105
107
106
The top level provides generic < b > mutable</ b > hash map operations.
108
- < p >
109
107
110
108
It also has two specialized inner modules
111
109
< code class ="code "> Belt.HashMap.Int</ code > and < code class ="code "> Belt.HashMap.String</ code > < br >
@@ -116,22 +114,21 @@ <h1>Module <a href="type_Belt.HashMap.html">Belt.HashMap</a></h1>
116
114
117
115
< hr width ="100% ">
118
116
119
- < pre > < span class ="keyword "> module</ span > < a href ="Belt_HashMap.Int.html "> Int</ a > : < code class ="type "> < a href ="Belt_HashMapInt.html "> Belt_HashMapInt</ a > </ code > </ pre > < div class ="info ">
117
+ < pre > < span id =" MODULEInt " > < span class ="keyword "> module</ span > < a href ="Belt_HashMap.Int.html "> Int</ a > </ span > : < code class ="type "> < a href ="Belt_HashMapInt.html "> Belt_HashMapInt</ a > </ code > </ pre > < div class ="info ">
120
118
< div class ="not-examples ">
121
119
Specalized when key type is < code class ="code "> int</ code > , more efficient
122
120
than the generic type< br >
123
121
124
122
</ div >
125
123
</ div >
126
- < pre > < span class ="keyword "> module</ span > < a href ="Belt_HashMap.String.html "> String</ a > : < code class ="type "> < a href ="Belt_HashMapString.html "> Belt_HashMapString</ a > </ code > </ pre > < div class ="info ">
124
+ < pre > < span id =" MODULEString " > < span class ="keyword "> module</ span > < a href ="Belt_HashMap.String.html "> String</ a > </ span > : < code class ="type "> < a href ="Belt_HashMapString.html "> Belt_HashMapString</ a > </ code > </ pre > < div class ="info ">
127
125
< div class ="not-examples ">
128
126
Specalized when key type is < code class ="code "> string</ code > , more efficient
129
127
than the generic type< br >
130
128
131
129
</ div >
132
- </ div > < div class =" type-declaration " >
130
+ </ div >
133
131
< pre > < span id ="TYPEt "> < span class ="keyword "> type</ span > < code class ="type "> ('key, 'value, 'id)</ code > t</ span > </ pre >
134
- </ div >
135
132
< div class ="info ">
136
133
< div class ="not-examples ">
137
134
The type of hash tables from type < code class ="code "> 'key</ code > to type < code class ="code "> 'value</ code > .< br >
@@ -141,9 +138,8 @@ <h1>Module <a href="type_Belt.HashMap.html">Belt.HashMap</a></h1>
141
138
</ div >
142
139
143
140
144
- < div class =" type-declaration " >
141
+
145
142
< pre > < span id ="TYPEid "> < span class ="keyword "> type</ span > < code class ="type "> ('a, 'id)</ code > id</ span > = < code class ="type "> ('a, 'id) < a href ="Belt_Id.html#TYPEhashable "> Belt_Id.hashable</ a > </ code > </ pre >
146
- </ div >
147
143
148
144
149
145
< pre > < span id ="VALmake "> < span class ="keyword "> val</ span > make</ span > : < code class ="type "> hintSize:int -> < br > id:('key, 'id) < a href ="Belt_HashMap.html#TYPEid "> id</ a > -> ('key, 'value, 'id) < a href ="Belt_HashMap.html#TYPEt "> t</ a > </ code > </ pre >
@@ -200,7 +196,6 @@ <h1>Module <a href="type_Belt.HashMap.html">Belt.HashMap</a></h1>
200
196
where < code class ="code "> k1 ... kN</ code > are the keys of all bindings in < code class ="code "> tbl</ code > ,
201
197
and < code class ="code "> d1 ... dN</ code > are the associated values.
202
198
Each binding is presented exactly once to < code class ="code "> f</ code > .
203
- < p >
204
199
205
200
The order in which the bindings are passed to < code class ="code "> f</ code > is unspecified.
206
201
However, if the table contains several bindings for the same key,
0 commit comments