@@ -31,7 +31,7 @@ let make: (~hintSize: int, ~id: id<'key, 'id>) => t<'key, 'value, 'id>
31
31
` make(~hintSize=10, ~id) ` creates a new map by taking in the comparator and ` hintSize ` .
32
32
33
33
``` res example
34
- module IntHash = Belt.Id.MakeHashable ({
34
+ module IntHash = Belt.Id.MakeHashableU ({
35
35
type t = int
36
36
let hash = a => a
37
37
let eq = (a, b) => a == b
@@ -51,7 +51,7 @@ let clear: t<'key, 'value, 'id> => unit
51
51
Clears a hash table.
52
52
53
53
``` res example
54
- module IntHash = Belt.Id.MakeHashable ({
54
+ module IntHash = Belt.Id.MakeHashableU ({
55
55
type t = int
56
56
let hash = a => a
57
57
let eq = (a, b) => a == b
@@ -71,7 +71,7 @@ let isEmpty: t<'a, 'b, 'c> => bool
71
71
` isEmpty(m) ` checks whether a hash map is empty.
72
72
73
73
``` res example
74
- module IntHash = Belt.Id.MakeHashable ({
74
+ module IntHash = Belt.Id.MakeHashableU ({
75
75
type t = int
76
76
let hash = a => a
77
77
let eq = (a, b) => a == b
@@ -89,7 +89,7 @@ let set: (t<'key, 'value, 'id>, 'key, 'value) => unit
89
89
` set(hMap, k, v) ` if ` k ` does not exist, add the binding ` k,v ` , otherwise, update the old value with the new ` v ` .
90
90
91
91
``` res example
92
- module IntHash = Belt.Id.MakeHashable ({
92
+ module IntHash = Belt.Id.MakeHashableU ({
93
93
type t = int
94
94
let hash = a => a
95
95
let eq = (a, b) => a == b
@@ -111,7 +111,7 @@ let copy: t<'key, 'value, 'id> => t<'key, 'value, 'id>
111
111
Creates copy of a hash map.
112
112
113
113
``` res example
114
- module IntHash = Belt.Id.MakeHashable ({
114
+ module IntHash = Belt.Id.MakeHashableU ({
115
115
type t = int
116
116
let hash = a => a
117
117
let eq = (a, b) => a == b
@@ -134,7 +134,7 @@ let get: (t<'key, 'value, 'id>, 'key) => option<'value>
134
134
Returns value bound under specific key. If values not exist returns ` None ` .
135
135
136
136
``` res example
137
- module IntHash = Belt.Id.MakeHashable ({
137
+ module IntHash = Belt.Id.MakeHashableU ({
138
138
type t = int
139
139
let hash = a => a
140
140
let eq = (a, b) => a == b
@@ -156,7 +156,7 @@ let has: (t<'key, 'value, 'id>, 'key) => bool
156
156
Checks if ` x ` is bound in ` tbl ` .
157
157
158
158
``` res example
159
- module IntHash = Belt.Id.MakeHashable ({
159
+ module IntHash = Belt.Id.MakeHashableU ({
160
160
type t = int
161
161
let hash = a => a
162
162
let eq = (a, b) => a == b
@@ -178,7 +178,7 @@ let remove: (t<'key, 'value, 'id>, 'key) => unit
178
178
If bound exists, removes it from the hash map.
179
179
180
180
``` res example
181
- module IntHash = Belt.Id.MakeHashable ({
181
+ module IntHash = Belt.Id.MakeHashableU ({
182
182
type t = int
183
183
let hash = a => a
184
184
let eq = (a, b) => a == b
@@ -207,7 +207,7 @@ let forEach: (t<'key, 'value, 'id>, ('key, 'value) => unit) => unit
207
207
` forEach(tbl, f) ` applies ` f ` to all bindings in table ` tbl ` . ` f ` receives the key as first argument, and the associated value as second argument. Each binding is presented exactly once to ` f ` .
208
208
209
209
``` res example
210
- module IntHash = Belt.Id.MakeHashable ({
210
+ module IntHash = Belt.Id.MakeHashableU ({
211
211
type t = int
212
212
let hash = a => a
213
213
let eq = (a, b) => a == b
@@ -238,7 +238,7 @@ let reduce: (t<'key, 'value, 'id>, 'c, ('c, 'key, 'value) => 'c) => 'c
238
238
The order in which the bindings are passed to ` f ` is unspecified. However, if the table contains several bindings for the same key, they are passed to ` f ` in reverse order of introduction, that is, the most recent binding is passed first.
239
239
240
240
``` res example
241
- module IntHash = Belt.Id.MakeHashable ({
241
+ module IntHash = Belt.Id.MakeHashableU ({
242
242
type t = int
243
243
let hash = a => a
244
244
let eq = (a, b) => a == b
@@ -268,7 +268,7 @@ let keepMapInPlace: (t<'key, 'value, 'id>, ('key, 'value) => option<'value>) =>
268
268
Filters out values for which function ` f ` returned ` None ` .
269
269
270
270
``` res example
271
- module IntHash = Belt.Id.MakeHashable ({
271
+ module IntHash = Belt.Id.MakeHashableU ({
272
272
type t = int
273
273
let hash = a => a
274
274
let eq = (a, b) => a == b
@@ -290,7 +290,7 @@ let size: t<'a, 'b, 'c> => int
290
290
` size(tbl) ` returns the number of bindings in ` tbl ` . It takes constant time.
291
291
292
292
``` res example
293
- module IntHash = Belt.Id.MakeHashable ({
293
+ module IntHash = Belt.Id.MakeHashableU ({
294
294
type t = int
295
295
let hash = a => a
296
296
let eq = (a, b) => a == b
@@ -312,7 +312,7 @@ let toArray: t<'key, 'value, 'id> => array<('key, 'value)>
312
312
Returns array of key value pairs.
313
313
314
314
``` res example
315
- module IntHash = Belt.Id.MakeHashable ({
315
+ module IntHash = Belt.Id.MakeHashableU ({
316
316
type t = int
317
317
let hash = a => a
318
318
let eq = (a, b) => a == b
@@ -334,7 +334,7 @@ let keysToArray: t<'key, 'a, 'b> => array<'key>
334
334
Returns array of keys.
335
335
336
336
``` res example
337
- module IntHash = Belt.Id.MakeHashable ({
337
+ module IntHash = Belt.Id.MakeHashableU ({
338
338
type t = int
339
339
let hash = a => a
340
340
let eq = (a, b) => a == b
@@ -356,7 +356,7 @@ let valuesToArray: t<'a, 'value, 'b> => array<'value>
356
356
Returns array of values.
357
357
358
358
``` res example
359
- module IntHash = Belt.Id.MakeHashable ({
359
+ module IntHash = Belt.Id.MakeHashableU ({
360
360
type t = int
361
361
let hash = a => a
362
362
let eq = (a, b) => a == b
@@ -380,7 +380,7 @@ Creates new hash map from array of pairs.
380
380
Returns array of values.
381
381
382
382
``` res example
383
- module IntHash = Belt.Id.MakeHashable ({
383
+ module IntHash = Belt.Id.MakeHashableU ({
384
384
type t = int
385
385
let hash = a => a
386
386
let eq = (a, b) => a == b
@@ -397,7 +397,7 @@ let mergeMany: (t<'key, 'value, 'id>, array<('key, 'value)>) => unit
397
397
```
398
398
399
399
``` res example
400
- module IntHash = Belt.Id.MakeHashable ({
400
+ module IntHash = Belt.Id.MakeHashableU ({
401
401
type t = int
402
402
let hash = a => a
403
403
let eq = (a, b) => a == b
@@ -414,7 +414,7 @@ let getBucketHistogram: t<'a, 'b, 'c> => array<int>
414
414
```
415
415
416
416
``` res example
417
- module IntHash = Belt.Id.MakeHashable ({
417
+ module IntHash = Belt.Id.MakeHashableU ({
418
418
type t = int
419
419
let hash = a => a
420
420
let eq = (a, b) => a == b
@@ -432,7 +432,7 @@ let logStats: t<'a, 'b, 'c> => unit
432
432
```
433
433
434
434
``` res example
435
- module IntHash = Belt.Id.MakeHashable ({
435
+ module IntHash = Belt.Id.MakeHashableU ({
436
436
type t = int
437
437
let hash = a => a
438
438
let eq = (a, b) => a == b
0 commit comments