@@ -1051,6 +1051,32 @@ eq("File \"bs_array_test.ml\", line 237, characters 5-12", Belt_Array.zipBy(/* a
1051
1051
return - x | 0 ;
1052
1052
} ) ) ) ;
1053
1053
1054
+ eq ( "File \"bs_array_test.ml\", line 238, characters 5-12" , Belt_Array . unzip ( /* array */ [
1055
+ /* tuple */ [
1056
+ 1 ,
1057
+ 2
1058
+ ] ,
1059
+ /* tuple */ [
1060
+ 2 ,
1061
+ 3
1062
+ ] ,
1063
+ /* tuple */ [
1064
+ 3 ,
1065
+ 4
1066
+ ]
1067
+ ] ) , /* tuple */ [
1068
+ /* array */ [
1069
+ 1 ,
1070
+ 2 ,
1071
+ 3
1072
+ ] ,
1073
+ /* array */ [
1074
+ 2 ,
1075
+ 3 ,
1076
+ 4
1077
+ ]
1078
+ ] ) ;
1079
+
1054
1080
function sumUsingForEach ( xs ) {
1055
1081
var v = [ 0 ] ;
1056
1082
Belt_Array . forEach ( xs , ( function ( x ) {
@@ -1060,15 +1086,15 @@ function sumUsingForEach(xs) {
1060
1086
return v [ 0 ] ;
1061
1087
}
1062
1088
1063
- eq ( "File \"bs_array_test.ml\", line 245 , characters 5-12" , sumUsingForEach ( /* array */ [
1089
+ eq ( "File \"bs_array_test.ml\", line 248 , characters 5-12" , sumUsingForEach ( /* array */ [
1064
1090
0 ,
1065
1091
1 ,
1066
1092
2 ,
1067
1093
3 ,
1068
1094
4
1069
1095
] ) , 10 ) ;
1070
1096
1071
- b ( "File \"bs_array_test.ml\", line 246 , characters 4-11" , ! Belt_Array . every ( /* array */ [
1097
+ b ( "File \"bs_array_test.ml\", line 249 , characters 4-11" , ! Belt_Array . every ( /* array */ [
1072
1098
0 ,
1073
1099
1 ,
1074
1100
2 ,
@@ -1078,7 +1104,7 @@ b("File \"bs_array_test.ml\", line 246, characters 4-11", !Belt_Array.every(/* a
1078
1104
return x > 2 ;
1079
1105
} ) ) ) ;
1080
1106
1081
- b ( "File \"bs_array_test.ml\", line 247 , characters 4-11" , Belt_Array . some ( /* array */ [
1107
+ b ( "File \"bs_array_test.ml\", line 250 , characters 4-11" , Belt_Array . some ( /* array */ [
1082
1108
1 ,
1083
1109
3 ,
1084
1110
7 ,
@@ -1087,22 +1113,22 @@ b("File \"bs_array_test.ml\", line 247, characters 4-11", Belt_Array.some(/* arr
1087
1113
return x % 2 === 0 ;
1088
1114
} ) ) ) ;
1089
1115
1090
- b ( "File \"bs_array_test.ml\", line 248 , characters 4-11" , ! Belt_Array . some ( /* array */ [
1116
+ b ( "File \"bs_array_test.ml\", line 251 , characters 4-11" , ! Belt_Array . some ( /* array */ [
1091
1117
1 ,
1092
1118
3 ,
1093
1119
7
1094
1120
] , ( function ( x ) {
1095
1121
return x % 2 === 0 ;
1096
1122
} ) ) ) ;
1097
1123
1098
- b ( "File \"bs_array_test.ml\", line 249 , characters 4-11" , ! Belt_Array . eq ( /* array */ [
1124
+ b ( "File \"bs_array_test.ml\", line 252 , characters 4-11" , ! Belt_Array . eq ( /* array */ [
1099
1125
0 ,
1100
1126
1
1101
1127
] , /* array */ [ 1 ] , Caml_obj . caml_equal ) ) ;
1102
1128
1103
1129
var c$1 = [ 0 ] ;
1104
1130
1105
- b ( "File \"bs_array_test.ml\", line 250 , characters 4-11" , ( Belt_Array . forEachWithIndex ( /* array */ [
1131
+ b ( "File \"bs_array_test.ml\", line 253 , characters 4-11" , ( Belt_Array . forEachWithIndex ( /* array */ [
1106
1132
1 ,
1107
1133
1 ,
1108
1134
1
@@ -1113,25 +1139,25 @@ b("File \"bs_array_test.ml\", line 250, characters 4-11", (Belt_Array.forEachWit
1113
1139
1114
1140
function id$1 ( _ , x ) {
1115
1141
var u = x . slice ( 0 ) ;
1116
- return eq ( "File \"bs_array_test.ml\", line 260 , characters 5-12" , Belt_Array . reverse ( x ) , ( Belt_Array . reverseInPlace ( u ) , u ) ) ;
1142
+ return eq ( "File \"bs_array_test.ml\", line 263 , characters 5-12" , Belt_Array . reverse ( x ) , ( Belt_Array . reverseInPlace ( u ) , u ) ) ;
1117
1143
}
1118
1144
1119
- id$1 ( "File \"bs_array_test.ml\", line 265 , characters 5-12" , /* array */ [ ] ) ;
1145
+ id$1 ( "File \"bs_array_test.ml\", line 268 , characters 5-12" , /* array */ [ ] ) ;
1120
1146
1121
- id$1 ( "File \"bs_array_test.ml\", line 266 , characters 5-12" , /* array */ [ 1 ] ) ;
1147
+ id$1 ( "File \"bs_array_test.ml\", line 269 , characters 5-12" , /* array */ [ 1 ] ) ;
1122
1148
1123
- id$1 ( "File \"bs_array_test.ml\", line 267 , characters 5-12" , /* array */ [
1149
+ id$1 ( "File \"bs_array_test.ml\", line 270 , characters 5-12" , /* array */ [
1124
1150
1 ,
1125
1151
2
1126
1152
] ) ;
1127
1153
1128
- id$1 ( "File \"bs_array_test.ml\", line 268 , characters 5-12" , /* array */ [
1154
+ id$1 ( "File \"bs_array_test.ml\", line 271 , characters 5-12" , /* array */ [
1129
1155
1 ,
1130
1156
2 ,
1131
1157
3
1132
1158
] ) ;
1133
1159
1134
- id$1 ( "File \"bs_array_test.ml\", line 269 , characters 5-12" , /* array */ [
1160
+ id$1 ( "File \"bs_array_test.ml\", line 272 , characters 5-12" , /* array */ [
1135
1161
1 ,
1136
1162
2 ,
1137
1163
3 ,
@@ -1154,14 +1180,14 @@ function some2(xs, ys) {
1154
1180
} ) ;
1155
1181
}
1156
1182
1157
- eq ( "File \"bs_array_test.ml\", line 279 , characters 5-12" , every2 ( /* [] */ 0 , /* :: */ [
1183
+ eq ( "File \"bs_array_test.ml\", line 282 , characters 5-12" , every2 ( /* [] */ 0 , /* :: */ [
1158
1184
1 ,
1159
1185
/* [] */ 0
1160
1186
] ) ( ( function ( x , y ) {
1161
1187
return x > y ;
1162
1188
} ) ) , true ) ;
1163
1189
1164
- eq ( "File \"bs_array_test.ml\", line 280 , characters 5-12" , every2 ( /* :: */ [
1190
+ eq ( "File \"bs_array_test.ml\", line 283 , characters 5-12" , every2 ( /* :: */ [
1165
1191
2 ,
1166
1192
/* :: */ [
1167
1193
3 ,
@@ -1174,7 +1200,7 @@ eq("File \"bs_array_test.ml\", line 280, characters 5-12", every2(/* :: */[
1174
1200
return x > y ;
1175
1201
} ) ) , true ) ;
1176
1202
1177
- eq ( "File \"bs_array_test.ml\", line 281 , characters 5-12" , every2 ( /* :: */ [
1203
+ eq ( "File \"bs_array_test.ml\", line 284 , characters 5-12" , every2 ( /* :: */ [
1178
1204
2 ,
1179
1205
/* [] */ 0
1180
1206
] , /* :: */ [
@@ -1184,7 +1210,7 @@ eq("File \"bs_array_test.ml\", line 281, characters 5-12", every2(/* :: */[
1184
1210
return x > y ;
1185
1211
} ) ) , true ) ;
1186
1212
1187
- eq ( "File \"bs_array_test.ml\", line 282 , characters 5-12" , every2 ( /* :: */ [
1213
+ eq ( "File \"bs_array_test.ml\", line 285 , characters 5-12" , every2 ( /* :: */ [
1188
1214
2 ,
1189
1215
/* :: */ [
1190
1216
3 ,
@@ -1200,7 +1226,7 @@ eq("File \"bs_array_test.ml\", line 282, characters 5-12", every2(/* :: */[
1200
1226
return x > y ;
1201
1227
} ) ) , false ) ;
1202
1228
1203
- eq ( "File \"bs_array_test.ml\", line 283 , characters 5-12" , every2 ( /* :: */ [
1229
+ eq ( "File \"bs_array_test.ml\", line 286 , characters 5-12" , every2 ( /* :: */ [
1204
1230
2 ,
1205
1231
/* :: */ [
1206
1232
3 ,
@@ -1216,14 +1242,14 @@ eq("File \"bs_array_test.ml\", line 283, characters 5-12", every2(/* :: */[
1216
1242
return x > y ;
1217
1243
} ) ) , true ) ;
1218
1244
1219
- eq ( "File \"bs_array_test.ml\", line 284 , characters 5-12" , some2 ( /* [] */ 0 , /* :: */ [
1245
+ eq ( "File \"bs_array_test.ml\", line 287 , characters 5-12" , some2 ( /* [] */ 0 , /* :: */ [
1220
1246
1 ,
1221
1247
/* [] */ 0
1222
1248
] ) ( ( function ( x , y ) {
1223
1249
return x > y ;
1224
1250
} ) ) , false ) ;
1225
1251
1226
- eq ( "File \"bs_array_test.ml\", line 285 , characters 5-12" , some2 ( /* :: */ [
1252
+ eq ( "File \"bs_array_test.ml\", line 288 , characters 5-12" , some2 ( /* :: */ [
1227
1253
2 ,
1228
1254
/* :: */ [
1229
1255
3 ,
@@ -1236,7 +1262,7 @@ eq("File \"bs_array_test.ml\", line 285, characters 5-12", some2(/* :: */[
1236
1262
return x > y ;
1237
1263
} ) ) , true ) ;
1238
1264
1239
- eq ( "File \"bs_array_test.ml\", line 286 , characters 5-12" , some2 ( /* :: */ [
1265
+ eq ( "File \"bs_array_test.ml\", line 289 , characters 5-12" , some2 ( /* :: */ [
1240
1266
2 ,
1241
1267
/* :: */ [
1242
1268
3 ,
@@ -1252,7 +1278,7 @@ eq("File \"bs_array_test.ml\", line 286, characters 5-12", some2(/* :: */[
1252
1278
return x > y ;
1253
1279
} ) ) , true ) ;
1254
1280
1255
- eq ( "File \"bs_array_test.ml\", line 287 , characters 5-12" , some2 ( /* :: */ [
1281
+ eq ( "File \"bs_array_test.ml\", line 290 , characters 5-12" , some2 ( /* :: */ [
1256
1282
0 ,
1257
1283
/* :: */ [
1258
1284
3 ,
@@ -1268,7 +1294,7 @@ eq("File \"bs_array_test.ml\", line 287, characters 5-12", some2(/* :: */[
1268
1294
return x > y ;
1269
1295
} ) ) , false ) ;
1270
1296
1271
- eq ( "File \"bs_array_test.ml\", line 288 , characters 5-12" , some2 ( /* :: */ [
1297
+ eq ( "File \"bs_array_test.ml\", line 291 , characters 5-12" , some2 ( /* :: */ [
1272
1298
0 ,
1273
1299
/* :: */ [
1274
1300
3 ,
@@ -1284,7 +1310,7 @@ eq("File \"bs_array_test.ml\", line 288, characters 5-12", some2(/* :: */[
1284
1310
return x > y ;
1285
1311
} ) ) , true ) ;
1286
1312
1287
- eq ( "File \"bs_array_test.ml\", line 293 , characters 5-12" , Belt_Array . concat ( /* array */ [ ] , /* array */ [
1313
+ eq ( "File \"bs_array_test.ml\", line 296 , characters 5-12" , Belt_Array . concat ( /* array */ [ ] , /* array */ [
1288
1314
1 ,
1289
1315
2 ,
1290
1316
3
@@ -1294,9 +1320,9 @@ eq("File \"bs_array_test.ml\", line 293, characters 5-12", Belt_Array.concat(/*
1294
1320
3
1295
1321
] ) ;
1296
1322
1297
- eq ( "File \"bs_array_test.ml\", line 294 , characters 5-12" , Belt_Array . concat ( /* array */ [ ] , /* array */ [ ] ) , /* array */ [ ] ) ;
1323
+ eq ( "File \"bs_array_test.ml\", line 297 , characters 5-12" , Belt_Array . concat ( /* array */ [ ] , /* array */ [ ] ) , /* array */ [ ] ) ;
1298
1324
1299
- eq ( "File \"bs_array_test.ml\", line 295 , characters 5-12" , Belt_Array . concat ( /* array */ [
1325
+ eq ( "File \"bs_array_test.ml\", line 298 , characters 5-12" , Belt_Array . concat ( /* array */ [
1300
1326
3 ,
1301
1327
2
1302
1328
] , /* array */ [
@@ -1311,7 +1337,7 @@ eq("File \"bs_array_test.ml\", line 295, characters 5-12", Belt_Array.concat(/*
1311
1337
3
1312
1338
] ) ;
1313
1339
1314
- eq ( "File \"bs_array_test.ml\", line 296 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1340
+ eq ( "File \"bs_array_test.ml\", line 299 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1315
1341
/* array */ [
1316
1342
3 ,
1317
1343
2
@@ -1329,7 +1355,7 @@ eq("File \"bs_array_test.ml\", line 296, characters 5-12", Belt_Array.concatMany
1329
1355
3
1330
1356
] ) ;
1331
1357
1332
- eq ( "File \"bs_array_test.ml\", line 297 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1358
+ eq ( "File \"bs_array_test.ml\", line 300 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1333
1359
/* array */ [
1334
1360
3 ,
1335
1361
2
@@ -1350,7 +1376,7 @@ eq("File \"bs_array_test.ml\", line 297, characters 5-12", Belt_Array.concatMany
1350
1376
0
1351
1377
] ) ;
1352
1378
1353
- eq ( "File \"bs_array_test.ml\", line 298 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1379
+ eq ( "File \"bs_array_test.ml\", line 301 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1354
1380
/* array */ [ ] ,
1355
1381
/* array */ [
1356
1382
3 ,
@@ -1372,12 +1398,12 @@ eq("File \"bs_array_test.ml\", line 298, characters 5-12", Belt_Array.concatMany
1372
1398
0
1373
1399
] ) ;
1374
1400
1375
- eq ( "File \"bs_array_test.ml\", line 299 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1401
+ eq ( "File \"bs_array_test.ml\", line 302 , characters 5-12" , Belt_Array . concatMany ( /* array */ [
1376
1402
/* array */ [ ] ,
1377
1403
/* array */ [ ]
1378
1404
] ) , /* array */ [ ] ) ;
1379
1405
1380
- b ( "File \"bs_array_test.ml\", line 302 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1406
+ b ( "File \"bs_array_test.ml\", line 305 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1381
1407
1 ,
1382
1408
2 ,
1383
1409
3
@@ -1388,7 +1414,7 @@ b("File \"bs_array_test.ml\", line 302, characters 4-11", Belt_Array.cmp(/* arra
1388
1414
3
1389
1415
] , Caml_obj . caml_compare ) < 0 ) ;
1390
1416
1391
- b ( "File \"bs_array_test.ml\", line 303 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1417
+ b ( "File \"bs_array_test.ml\", line 306 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1392
1418
0 ,
1393
1419
1 ,
1394
1420
2 ,
@@ -1399,7 +1425,7 @@ b("File \"bs_array_test.ml\", line 303, characters 4-11", Belt_Array.cmp(/* arra
1399
1425
3
1400
1426
] , Caml_obj . caml_compare ) > 0 ) ;
1401
1427
1402
- b ( "File \"bs_array_test.ml\", line 304 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1428
+ b ( "File \"bs_array_test.ml\", line 307 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1403
1429
1 ,
1404
1430
2 ,
1405
1431
3
@@ -1409,7 +1435,7 @@ b("File \"bs_array_test.ml\", line 304, characters 4-11", Belt_Array.cmp(/* arra
1409
1435
2
1410
1436
] , Caml_primitive . caml_int_compare ) > 0 ) ;
1411
1437
1412
- b ( "File \"bs_array_test.ml\", line 305 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1438
+ b ( "File \"bs_array_test.ml\", line 308 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1413
1439
1 ,
1414
1440
2 ,
1415
1441
3
@@ -1419,7 +1445,7 @@ b("File \"bs_array_test.ml\", line 305, characters 4-11", Belt_Array.cmp(/* arra
1419
1445
3
1420
1446
] , Caml_primitive . caml_int_compare ) === 0 ) ;
1421
1447
1422
- b ( "File \"bs_array_test.ml\", line 306 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1448
+ b ( "File \"bs_array_test.ml\", line 309 , characters 4-11" , Belt_Array . cmp ( /* array */ [
1423
1449
1 ,
1424
1450
2 ,
1425
1451
4
@@ -1429,7 +1455,7 @@ b("File \"bs_array_test.ml\", line 306, characters 4-11", Belt_Array.cmp(/* arra
1429
1455
3
1430
1456
] , Caml_primitive . caml_int_compare ) > 0 ) ;
1431
1457
1432
- Mt . from_pair_suites ( "File \"bs_array_test.ml\", line 309 , characters 23-30" , suites [ 0 ] ) ;
1458
+ Mt . from_pair_suites ( "File \"bs_array_test.ml\", line 312 , characters 23-30" , suites [ 0 ] ) ;
1433
1459
1434
1460
var A = 0 ;
1435
1461
0 commit comments