@@ -179,7 +179,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
179
179
180
180
</ div >
181
181
< div class ="examples ">
182
- < pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp = (val IntCmp .comparable ~cmp:(fun (x:int) y -> Pervasives.compare x y));;
182
+ < pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp = (val Belt.Id .comparable ~cmp:(fun (x:int) y -> Pervasives.compare x y));;
183
183
let s = make ~id:(module IntCmp)
184
184
</ code > </ pre > </ pre >
185
185
</ div >
@@ -192,7 +192,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
192
192
193
193
</ div >
194
194
< div class ="examples ">
195
- < pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp = (val IntCmp .comparable ~cmp:(fun (x:int) y -> Pervasives.compare x y));;
195
+ < pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp = (val Belt.Id .comparable ~cmp:(fun (x:int) y -> Pervasives.compare x y));;
196
196
isEmpty (ofArray [|1,"1"|] ~id:(module IntCmp)) = false;;
197
197
</ code > </ pre > </ pre >
198
198
</ div >
@@ -205,7 +205,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
205
205
206
206
</ div >
207
207
< div class ="examples ">
208
- < pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp = (val IntCmp .comparable ~cmp:(fun (x:int) y -> Pervasives.compare x y));;
208
+ < pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp = (val Belt.Id .comparable ~cmp:(fun (x:int) y -> Pervasives.compare x y));;
209
209
has (ofArray [|1,"1"|] ~id:(module IntCmp)) 1 = true;;
210
210
</ code > </ pre > </ pre >
211
211
</ div >
@@ -252,7 +252,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
252
252
</ div >
253
253
< div class ="examples ">
254
254
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
255
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
255
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
256
256
257
257
let s0 = ofArray ~id:(module IntCmp) [|4,"4";1,"1";2,"2,"3""|];;
258
258
let acc = ref [] ;;
@@ -274,7 +274,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
274
274
</ div >
275
275
< div class ="examples ">
276
276
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
277
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
277
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
278
278
279
279
let s0 = ofArray ~id:(module IntCmp) [|4,"4";1,"1";2,"2,"3""|];;
280
280
reduce s0 [] (fun acc k v -> (k,v) acc ) = [4,"4";3,"3";2,"2";1,"1"];;
@@ -312,7 +312,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
312
312
</ div >
313
313
< div class ="examples ">
314
314
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
315
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
315
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
316
316
size (ofArray [2,"2"; 2,"1"; 3,"3"] ~id:(module IntCmp)) = 2 ;;
317
317
</ code > </ pre > </ pre >
318
318
</ div >
@@ -326,7 +326,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
326
326
</ div >
327
327
< div class ="examples ">
328
328
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
329
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
329
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
330
330
toArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) = [1,"1";2,"2";3,"3"]
331
331
</ code > </ pre > </ pre >
332
332
</ div >
@@ -352,7 +352,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
352
352
</ div >
353
353
< div class ="examples ">
354
354
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
355
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
355
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
356
356
toArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) = [1,"1";2,"2";3,"3"]
357
357
</ code > </ pre > </ pre >
358
358
</ div >
@@ -366,7 +366,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
366
366
</ div >
367
367
< div class ="examples ">
368
368
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
369
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
369
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
370
370
keysToArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) =
371
371
[|1;2;3|];;
372
372
</ code > </ pre > </ pre >
@@ -381,7 +381,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
381
381
</ div >
382
382
< div class ="examples ">
383
383
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
384
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
384
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
385
385
valuesToArray (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) =
386
386
[|"1";"2";"3"|];;
387
387
</ code > </ pre > </ pre >
@@ -472,7 +472,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
472
472
</ div >
473
473
< div class ="examples ">
474
474
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
475
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
475
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
476
476
get (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) 2 =
477
477
Some "2";;
478
478
get (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp)) 2 =
@@ -527,7 +527,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
527
527
</ div >
528
528
< div class ="examples ">
529
529
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
530
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
530
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
531
531
532
532
let s0 = (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp));;
533
533
@@ -563,7 +563,7 @@ <h1>Module <a href="type_Belt.Map.html">Belt.Map</a></h1>
563
563
</ div >
564
564
< div class ="examples ">
565
565
< pre class ="example "> < pre class ="codepre "> < code class ="code "> module IntCmp =
566
- (val IntCmp .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
566
+ (val Belt.Id .comparableU ~cmp:(fun[@bs] (x:int) y -> Pervasives.compare x y));;
567
567
568
568
let s0 = (ofArray [2,"2"; 1,"1"; 3,"3"] ~id:(module IntCmp));;
569
569
0 commit comments