@@ -1797,7 +1797,23 @@ b("File \"bs_list_test.ml\", line 267, characters 4-11", Caml_obj.caml_equal(Bel
1797
1797
]
1798
1798
] ) ) ;
1799
1799
1800
- b ( "File \"bs_list_test.ml\", line 268, characters 4-11" , Belt_List . reduceReverse2 ( /* :: */ [
1800
+ b ( "File \"bs_list_test.ml\", line 268, characters 4-11" , Belt_List . reduceWithIndex ( /* :: */ [
1801
+ 1 ,
1802
+ /* :: */ [
1803
+ 2 ,
1804
+ /* :: */ [
1805
+ 3 ,
1806
+ /* :: */ [
1807
+ 4 ,
1808
+ /* [] */ 0
1809
+ ]
1810
+ ]
1811
+ ]
1812
+ ] , 0 , ( function ( acc , x , i ) {
1813
+ return ( acc + x | 0 ) + i | 0 ;
1814
+ } ) ) === 16 ) ;
1815
+
1816
+ b ( "File \"bs_list_test.ml\", line 269, characters 4-11" , Belt_List . reduceReverse2 ( /* :: */ [
1801
1817
1 ,
1802
1818
/* :: */ [
1803
1819
2 ,
@@ -1820,21 +1836,21 @@ var a$1 = Belt_List.makeBy(10000, (function (i) {
1820
1836
return i ;
1821
1837
} ) ) ;
1822
1838
1823
- b ( "File \"bs_list_test.ml\", line 271 , characters 4-11" , Belt_List . reduceReverse2 ( a$1 , /* :: */ [
1839
+ b ( "File \"bs_list_test.ml\", line 272 , characters 4-11" , Belt_List . reduceReverse2 ( a$1 , /* :: */ [
1824
1840
0 ,
1825
1841
a$1
1826
1842
] , 0 , ( function ( acc , x , y ) {
1827
1843
return ( acc + x | 0 ) + y | 0 ;
1828
1844
} ) ) === 99980001 ) ;
1829
1845
1830
- eq ( "File \"bs_list_test.ml\", line 277 , characters 5-12" , Belt_List . every2 ( /* [] */ 0 , /* :: */ [
1846
+ eq ( "File \"bs_list_test.ml\", line 278 , characters 5-12" , Belt_List . every2 ( /* [] */ 0 , /* :: */ [
1831
1847
1 ,
1832
1848
/* [] */ 0
1833
1849
] , ( function ( x , y ) {
1834
1850
return x > y ;
1835
1851
} ) ) , true ) ;
1836
1852
1837
- eq ( "File \"bs_list_test.ml\", line 278 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1853
+ eq ( "File \"bs_list_test.ml\", line 279 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1838
1854
2 ,
1839
1855
/* :: */ [
1840
1856
3 ,
@@ -1847,7 +1863,7 @@ eq("File \"bs_list_test.ml\", line 278, characters 5-12", Belt_List.every2(/* ::
1847
1863
return x > y ;
1848
1864
} ) ) , true ) ;
1849
1865
1850
- eq ( "File \"bs_list_test.ml\", line 279 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1866
+ eq ( "File \"bs_list_test.ml\", line 280 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1851
1867
2 ,
1852
1868
/* [] */ 0
1853
1869
] , /* :: */ [
@@ -1857,7 +1873,7 @@ eq("File \"bs_list_test.ml\", line 279, characters 5-12", Belt_List.every2(/* ::
1857
1873
return x > y ;
1858
1874
} ) ) , true ) ;
1859
1875
1860
- eq ( "File \"bs_list_test.ml\", line 280 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1876
+ eq ( "File \"bs_list_test.ml\", line 281 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1861
1877
2 ,
1862
1878
/* :: */ [
1863
1879
3 ,
@@ -1873,7 +1889,7 @@ eq("File \"bs_list_test.ml\", line 280, characters 5-12", Belt_List.every2(/* ::
1873
1889
return x > y ;
1874
1890
} ) ) , false ) ;
1875
1891
1876
- eq ( "File \"bs_list_test.ml\", line 281 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1892
+ eq ( "File \"bs_list_test.ml\", line 282 , characters 5-12" , Belt_List . every2 ( /* :: */ [
1877
1893
2 ,
1878
1894
/* :: */ [
1879
1895
3 ,
@@ -1889,14 +1905,14 @@ eq("File \"bs_list_test.ml\", line 281, characters 5-12", Belt_List.every2(/* ::
1889
1905
return x > y ;
1890
1906
} ) ) , true ) ;
1891
1907
1892
- eq ( "File \"bs_list_test.ml\", line 282 , characters 5-12" , Belt_List . some2 ( /* [] */ 0 , /* :: */ [
1908
+ eq ( "File \"bs_list_test.ml\", line 283 , characters 5-12" , Belt_List . some2 ( /* [] */ 0 , /* :: */ [
1893
1909
1 ,
1894
1910
/* [] */ 0
1895
1911
] , ( function ( x , y ) {
1896
1912
return x > y ;
1897
1913
} ) ) , false ) ;
1898
1914
1899
- eq ( "File \"bs_list_test.ml\", line 283 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1915
+ eq ( "File \"bs_list_test.ml\", line 284 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1900
1916
2 ,
1901
1917
/* :: */ [
1902
1918
3 ,
@@ -1909,7 +1925,7 @@ eq("File \"bs_list_test.ml\", line 283, characters 5-12", Belt_List.some2(/* ::
1909
1925
return x > y ;
1910
1926
} ) ) , true ) ;
1911
1927
1912
- eq ( "File \"bs_list_test.ml\", line 284 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1928
+ eq ( "File \"bs_list_test.ml\", line 285 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1913
1929
2 ,
1914
1930
/* :: */ [
1915
1931
3 ,
@@ -1925,7 +1941,7 @@ eq("File \"bs_list_test.ml\", line 284, characters 5-12", Belt_List.some2(/* ::
1925
1941
return x > y ;
1926
1942
} ) ) , true ) ;
1927
1943
1928
- eq ( "File \"bs_list_test.ml\", line 285 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1944
+ eq ( "File \"bs_list_test.ml\", line 286 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1929
1945
0 ,
1930
1946
/* :: */ [
1931
1947
3 ,
@@ -1941,7 +1957,7 @@ eq("File \"bs_list_test.ml\", line 285, characters 5-12", Belt_List.some2(/* ::
1941
1957
return x > y ;
1942
1958
} ) ) , false ) ;
1943
1959
1944
- eq ( "File \"bs_list_test.ml\", line 286 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1960
+ eq ( "File \"bs_list_test.ml\", line 287 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1945
1961
0 ,
1946
1962
/* :: */ [
1947
1963
3 ,
@@ -1957,7 +1973,7 @@ eq("File \"bs_list_test.ml\", line 286, characters 5-12", Belt_List.some2(/* ::
1957
1973
return x > y ;
1958
1974
} ) ) , true ) ;
1959
1975
1960
- eq ( "File \"bs_list_test.ml\", line 287 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1976
+ eq ( "File \"bs_list_test.ml\", line 288 , characters 5-12" , Belt_List . some2 ( /* :: */ [
1961
1977
1 ,
1962
1978
/* :: */ [
1963
1979
2 ,
@@ -1977,12 +1993,12 @@ eq("File \"bs_list_test.ml\", line 287, characters 5-12", Belt_List.some2(/* ::
1977
1993
} ) ) , false ) ;
1978
1994
1979
1995
function makeTest ( n ) {
1980
- return eq ( "File \"bs_list_test.ml\", line 290 , characters 5-12" , Belt_List . make ( n , 3 ) , Belt_List . makeBy ( n , ( function ( ) {
1996
+ return eq ( "File \"bs_list_test.ml\", line 291 , characters 5-12" , Belt_List . make ( n , 3 ) , Belt_List . makeBy ( n , ( function ( ) {
1981
1997
return 3 ;
1982
1998
} ) ) ) ;
1983
1999
}
1984
2000
1985
- eq ( "File \"bs_list_test.ml\", line 293 , characters 5-12" , /* :: */ [
2001
+ eq ( "File \"bs_list_test.ml\", line 294 , characters 5-12" , /* :: */ [
1986
2002
2 ,
1987
2003
/* :: */ [
1988
2004
3 ,
@@ -1996,7 +2012,7 @@ eq("File \"bs_list_test.ml\", line 293, characters 5-12", /* :: */[
1996
2012
]
1997
2013
] ) ;
1998
2014
1999
- b ( "File \"bs_list_test.ml\", line 299 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2015
+ b ( "File \"bs_list_test.ml\", line 300 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2000
2016
1 ,
2001
2017
/* :: */ [
2002
2018
2 ,
@@ -2019,7 +2035,7 @@ b("File \"bs_list_test.ml\", line 299, characters 4-11", Belt_List.cmp(/* :: */[
2019
2035
]
2020
2036
] , Caml_obj . caml_compare ) > 0 ) ;
2021
2037
2022
- b ( "File \"bs_list_test.ml\", line 300 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2038
+ b ( "File \"bs_list_test.ml\", line 301 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2023
2039
1 ,
2024
2040
/* :: */ [
2025
2041
2 ,
@@ -2042,7 +2058,7 @@ b("File \"bs_list_test.ml\", line 300, characters 4-11", Belt_List.cmp(/* :: */[
2042
2058
]
2043
2059
] , Caml_obj . caml_compare ) > 0 ) ;
2044
2060
2045
- b ( "File \"bs_list_test.ml\", line 301 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2061
+ b ( "File \"bs_list_test.ml\", line 302 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2046
2062
1 ,
2047
2063
/* :: */ [
2048
2064
2 ,
@@ -2065,7 +2081,7 @@ b("File \"bs_list_test.ml\", line 301, characters 4-11", Belt_List.cmp(/* :: */[
2065
2081
]
2066
2082
] , Caml_obj . caml_compare ) < 0 ) ;
2067
2083
2068
- b ( "File \"bs_list_test.ml\", line 302 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2084
+ b ( "File \"bs_list_test.ml\", line 303 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2069
2085
1 ,
2070
2086
/* :: */ [
2071
2087
2 ,
@@ -2085,7 +2101,7 @@ b("File \"bs_list_test.ml\", line 302, characters 4-11", Belt_List.cmp(/* :: */[
2085
2101
]
2086
2102
] , Caml_primitive . caml_int_compare ) > 0 ) ;
2087
2103
2088
- b ( "File \"bs_list_test.ml\", line 303 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2104
+ b ( "File \"bs_list_test.ml\", line 304 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2089
2105
1 ,
2090
2106
/* :: */ [
2091
2107
2 ,
@@ -2105,7 +2121,7 @@ b("File \"bs_list_test.ml\", line 303, characters 4-11", Belt_List.cmp(/* :: */[
2105
2121
]
2106
2122
] , Caml_primitive . caml_int_compare ) === 0 ) ;
2107
2123
2108
- b ( "File \"bs_list_test.ml\", line 304 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2124
+ b ( "File \"bs_list_test.ml\", line 305 , characters 4-11" , Belt_List . cmp ( /* :: */ [
2109
2125
1 ,
2110
2126
/* :: */ [
2111
2127
2 ,
@@ -2125,19 +2141,19 @@ b("File \"bs_list_test.ml\", line 304, characters 4-11", Belt_List.cmp(/* :: */[
2125
2141
]
2126
2142
] , Caml_primitive . caml_int_compare ) > 0 ) ;
2127
2143
2128
- b ( "File \"bs_list_test.ml\", line 305 , characters 4-11" , Belt_List . cmpByLength ( /* [] */ 0 , /* [] */ 0 ) === 0 ) ;
2144
+ b ( "File \"bs_list_test.ml\", line 306 , characters 4-11" , Belt_List . cmpByLength ( /* [] */ 0 , /* [] */ 0 ) === 0 ) ;
2129
2145
2130
- b ( "File \"bs_list_test.ml\", line 306 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2146
+ b ( "File \"bs_list_test.ml\", line 307 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2131
2147
1 ,
2132
2148
/* [] */ 0
2133
2149
] , /* [] */ 0 ) > 0 ) ;
2134
2150
2135
- b ( "File \"bs_list_test.ml\", line 307 , characters 4-11" , Belt_List . cmpByLength ( /* [] */ 0 , /* :: */ [
2151
+ b ( "File \"bs_list_test.ml\", line 308 , characters 4-11" , Belt_List . cmpByLength ( /* [] */ 0 , /* :: */ [
2136
2152
1 ,
2137
2153
/* [] */ 0
2138
2154
] ) < 0 ) ;
2139
2155
2140
- b ( "File \"bs_list_test.ml\", line 308 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2156
+ b ( "File \"bs_list_test.ml\", line 309 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2141
2157
1 ,
2142
2158
/* :: */ [
2143
2159
2 ,
@@ -2148,7 +2164,7 @@ b("File \"bs_list_test.ml\", line 308, characters 4-11", Belt_List.cmpByLength(/
2148
2164
/* [] */ 0
2149
2165
] ) > 0 ) ;
2150
2166
2151
- b ( "File \"bs_list_test.ml\", line 309 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2167
+ b ( "File \"bs_list_test.ml\", line 310 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2152
2168
1 ,
2153
2169
/* [] */ 0
2154
2170
] , /* :: */ [
@@ -2159,7 +2175,7 @@ b("File \"bs_list_test.ml\", line 309, characters 4-11", Belt_List.cmpByLength(/
2159
2175
]
2160
2176
] ) < 0 ) ;
2161
2177
2162
- b ( "File \"bs_list_test.ml\", line 310 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2178
+ b ( "File \"bs_list_test.ml\", line 311 , characters 4-11" , Belt_List . cmpByLength ( /* :: */ [
2163
2179
1 ,
2164
2180
/* :: */ [
2165
2181
3 ,
@@ -2243,7 +2259,7 @@ eq("SORT", Belt_List.sort(/* :: */[
2243
2259
]
2244
2260
] ) ;
2245
2261
2246
- b ( "File \"bs_list_test.ml\", line 326 , characters 4-11" , ! Belt_List . eq ( /* :: */ [
2262
+ b ( "File \"bs_list_test.ml\", line 327 , characters 4-11" , ! Belt_List . eq ( /* :: */ [
2247
2263
1 ,
2248
2264
/* :: */ [
2249
2265
2 ,
@@ -2262,7 +2278,7 @@ b("File \"bs_list_test.ml\", line 326, characters 4-11", !Belt_List.eq(/* :: */[
2262
2278
return x === y ;
2263
2279
} ) ) ) ;
2264
2280
2265
- b ( "File \"bs_list_test.ml\", line 327 , characters 4-11" , Belt_List . eq ( /* :: */ [
2281
+ b ( "File \"bs_list_test.ml\", line 328 , characters 4-11" , Belt_List . eq ( /* :: */ [
2266
2282
1 ,
2267
2283
/* :: */ [
2268
2284
2 ,
@@ -2284,7 +2300,7 @@ b("File \"bs_list_test.ml\", line 327, characters 4-11", Belt_List.eq(/* :: */[
2284
2300
return x === y ;
2285
2301
} ) ) ) ;
2286
2302
2287
- b ( "File \"bs_list_test.ml\", line 328 , characters 4-11" , ! Belt_List . eq ( /* :: */ [
2303
+ b ( "File \"bs_list_test.ml\", line 329 , characters 4-11" , ! Belt_List . eq ( /* :: */ [
2288
2304
1 ,
2289
2305
/* :: */ [
2290
2306
2 ,
@@ -2306,7 +2322,7 @@ b("File \"bs_list_test.ml\", line 328, characters 4-11", !Belt_List.eq(/* :: */[
2306
2322
return x === y ;
2307
2323
} ) ) ) ;
2308
2324
2309
- b ( "File \"bs_list_test.ml\", line 329 , characters 4-11" , ! Belt_List . eq ( /* :: */ [
2325
+ b ( "File \"bs_list_test.ml\", line 330 , characters 4-11" , ! Belt_List . eq ( /* :: */ [
2310
2326
1 ,
2311
2327
/* :: */ [
2312
2328
2 ,
@@ -2340,7 +2356,7 @@ var u1 = Belt_List.keepMap(u0, (function (x) {
2340
2356
2341
2357
} ) ) ;
2342
2358
2343
- eq ( "File \"bs_list_test.ml\", line 333 , characters 5-12" , u1 , /* :: */ [
2359
+ eq ( "File \"bs_list_test.ml\", line 334 , characters 5-12" , u1 , /* :: */ [
2344
2360
1 ,
2345
2361
/* :: */ [
2346
2362
8 ,
@@ -2351,7 +2367,7 @@ eq("File \"bs_list_test.ml\", line 333, characters 5-12", u1, /* :: */[
2351
2367
]
2352
2368
] ) ;
2353
2369
2354
- b ( "File \"bs_list_test.ml\", line 334 , characters 4-11" , Caml_obj . caml_equal ( Belt_List . keepMap ( /* :: */ [
2370
+ b ( "File \"bs_list_test.ml\", line 335 , characters 4-11" , Caml_obj . caml_equal ( Belt_List . keepMap ( /* :: */ [
2355
2371
1 ,
2356
2372
/* :: */ [
2357
2373
2 ,
@@ -2376,7 +2392,7 @@ b("File \"bs_list_test.ml\", line 334, characters 4-11", Caml_obj.caml_equal(Bel
2376
2392
]
2377
2393
] ) ) ;
2378
2394
2379
- b ( "File \"bs_list_test.ml\", line 338 , characters 4-11" , Belt_List . keepMap ( /* :: */ [
2395
+ b ( "File \"bs_list_test.ml\", line 339 , characters 4-11" , Belt_List . keepMap ( /* :: */ [
2380
2396
1 ,
2381
2397
/* :: */ [
2382
2398
2 ,
0 commit comments