diff --git a/docs/coverage/lcov-report/index.html b/docs/coverage/lcov-report/index.html index 5205ce4c..df63b5bb 100644 --- a/docs/coverage/lcov-report/index.html +++ b/docs/coverage/lcov-report/index.html @@ -20,24 +20,24 @@
@@ -63,28 +63,28 @@
@@ -579,7 +579,10 @@
@@ -558,7 +558,10 @@
@@ -475,7 +475,18 @@
'use strict'; @@ -1243,6 +1265,16 @@return removeEachBy(eqA[/* eq */0], x, xs); } +function replaceAt(targetIndex, newX, xs) { + return mapWithIndex((function (x, currentIndex) { + if (currentIndex === targetIndex) { + return newX; + } else { + return x; + } + }), xs); +} + function scanLeft(f, init, xs) { return Relude_Array_Instances.foldLeft((function (param, curr) { var nextAcc = Curry._2(f, param[0], curr); @@ -1330,6 +1362,7 @@
exports.distinct = distinct; exports.removeFirst = removeFirst; exports.removeEach = removeEach; +exports.replaceAt = replaceAt; exports.scanLeft = scanLeft; exports.scanRight = scanRight; /* Relude_Int Not a pure module */ diff --git a/docs/coverage/lcov-report/src/array/index.html b/docs/coverage/lcov-report/src/array/index.html index 86785639..83928a48 100644 --- a/docs/coverage/lcov-report/src/array/index.html +++ b/docs/coverage/lcov-report/src/array/index.html @@ -20,24 +20,24 @@
- 92.72% + 92.81% Statements - 395/426 + 400/431- 83.87% + 84.38% Branches - 52/62 + 54/64- 80.3% + 80.88% Functions - 53/66 + 55/68- 92.72% + 92.81% Lines - 395/426 + 400/431@@ -63,15 +63,15 @@
Relude_Array_Base.bs.js -- 88.72% -173/195 -82.14% -46/56 -85.96% -49/57 -88.72% -173/195 ++ 89% +178/200 +82.76% +48/58 +86.44% +51/59 +89% +178/200 diff --git a/docs/coverage/lcov-report/src/index.html b/docs/coverage/lcov-report/src/index.html index 32bc8bff..53ac39d6 100644 --- a/docs/coverage/lcov-report/src/index.html +++ b/docs/coverage/lcov-report/src/index.html @@ -20,9 +20,9 @@
- 65.7% + 65.73% Statements - 3061/4659 + 3065/466344.73% @@ -35,9 +35,9 @@379/905
- 65.7% + 65.73% Lines - 3061/4659 + 3065/4663@@ -65,13 +65,13 @@
Relude_Array.bs.js 100% -337/337 +339/339 100% 0/0 100% 0/0 100% -337/337 +339/339 @@ -208,13 +208,13 @@
Relude_List.bs.js 100% -323/323 +325/325 100% 0/0 100% 0/0 100% -323/323 +325/325 diff --git a/docs/coverage/lcov-report/src/list/Relude_List_Base.bs.js.html b/docs/coverage/lcov-report/src/list/Relude_List_Base.bs.js.html index 22a3000a..88db349a 100644 --- a/docs/coverage/lcov-report/src/list/Relude_List_Base.bs.js.html +++ b/docs/coverage/lcov-report/src/list/Relude_List_Base.bs.js.html @@ -20,24 +20,24 @@
- 97.39% + 97.45% Statements - 224/230 + 229/235- 98.21% + 98.28% Branches - 55/56 + 57/58- 91.94% + 92.19% Functions - 57/62 + 59/64- 97.39% + 97.45% Lines - 224/230 + 229/235@@ -571,7 +571,18 @@
523 524 525 -526
+526 +527 +528 +529 +530 +531 +532 +533 +534 +535 +536 +537 18x 18x @@ -607,8 +618,8 @@ 18x -1x -3x +2x +8x @@ -1004,6 +1015,16 @@
1x 5x +1x + +4x + + + + + +1x +5x 5x @@ -1095,6 +1116,7 @@
18x 18x 18x +18x
'use strict'; @@ -1526,6 +1548,16 @@return removeEachBy(eqA[/* eq */0], x, xs); } +function replaceAt(targetIndex, newX, xs) { + return mapWithIndex((function (x, currentIndex) { + if (currentIndex === targetIndex) { + return newX; + } else { + return x; + } + }), xs); +} + function scanLeft(f, init, xs) { return Belt_List.reverse(Relude_List_Instances.foldLeft((function (param, curr) { var nextAcc = Curry._2(f, param[0], curr); @@ -1618,6 +1650,7 @@
exports.distinct = distinct; exports.removeFirst = removeFirst; exports.removeEach = removeEach; +exports.replaceAt = replaceAt; exports.scanLeft = scanLeft; exports.scanRight = scanRight; /* Relude_Option Not a pure module */ diff --git a/docs/coverage/lcov-report/src/list/index.html b/docs/coverage/lcov-report/src/list/index.html index c4243eb0..e3684888 100644 --- a/docs/coverage/lcov-report/src/list/index.html +++ b/docs/coverage/lcov-report/src/list/index.html @@ -20,24 +20,24 @@
- 97.04% + 97.07% Statements - 426/439 + 431/444- 98.44% + 98.48% Branches - 63/64 + 65/66- 85.71% + 86.11% Functions - 60/70 + 62/72- 97.04% + 97.07% Lines - 426/439 + 431/444@@ -63,15 +63,15 @@
Relude_List_Base.bs.js -- 97.39% -224/230 -98.21% -55/56 -91.94% -57/62 -97.39% -224/230 ++ 97.45% +229/235 +98.28% +57/58 +92.19% +59/64 +97.45% +229/235 diff --git a/docs/coverage/lcov.info b/docs/coverage/lcov.info index fb170ef9..0352981b 100644 --- a/docs/coverage/lcov.info +++ b/docs/coverage/lcov.info @@ -185,7 +185,6 @@ DA:372,5 DA:374,5 DA:376,5 DA:378,5 -DA:379,5 DA:380,5 DA:381,5 DA:382,5 @@ -339,8 +338,11 @@ DA:529,5 DA:530,5 DA:531,5 DA:532,5 -LF:337 -LH:337 +DA:533,5 +DA:534,5 +DA:535,5 +LF:339 +LH:339 BRF:0 BRH:0 end_of_record @@ -3298,7 +3300,6 @@ DA:358,5 DA:360,5 DA:362,5 DA:364,5 -DA:365,5 DA:366,5 DA:367,5 DA:368,5 @@ -3445,8 +3446,11 @@ DA:508,5 DA:509,5 DA:510,5 DA:511,5 -LF:323 -LH:323 +DA:512,5 +DA:513,5 +DA:514,5 +LF:325 +LH:325 BRF:0 BRH:0 end_of_record @@ -7382,17 +7386,19 @@ FN:318,(anonymous_49) FN:328,distinct FN:332,removeFirst FN:336,removeEach -FN:340,scanLeft +FN:340,replaceAt FN:341,(anonymous_54) -FN:353,scanRight -FN:354,(anonymous_56) -FNF:57 -FNH:49 +FN:350,scanLeft +FN:351,(anonymous_56) +FN:363,scanRight +FN:364,(anonymous_58) +FNF:59 +FNH:51 FNDA:2,cons FNDA:3,uncons FNDA:21,append -FNDA:1,mapWithIndex -FNDA:3,(anonymous_4) +FNDA:2,mapWithIndex +FNDA:8,(anonymous_4) FNDA:0,shuffleInPlace FNDA:2,length FNDA:2,isEmpty @@ -7441,10 +7447,12 @@ FNDA:0,(anonymous_49) FNDA:0,distinct FNDA:0,removeFirst FNDA:0,removeEach -FNDA:1,scanLeft +FNDA:1,replaceAt FNDA:5,(anonymous_54) -FNDA:1,scanRight +FNDA:1,scanLeft FNDA:5,(anonymous_56) +FNDA:1,scanRight +FNDA:5,(anonymous_58) DA:3,18 DA:4,18 DA:5,18 @@ -7457,8 +7465,8 @@ DA:16,3 DA:17,2 DA:26,21 DA:29,18 -DA:32,1 -DA:33,3 +DA:32,2 +DA:33,8 DA:38,0 DA:39,0 DA:43,2 @@ -7579,26 +7587,20 @@ DA:333,0 DA:337,0 DA:341,1 DA:342,5 -DA:343,5 -DA:354,1 -DA:355,5 -DA:356,5 -DA:366,18 -DA:368,18 -DA:370,18 -DA:372,18 -DA:374,18 +DA:343,1 +DA:345,4 +DA:351,1 +DA:352,5 +DA:353,5 +DA:364,1 +DA:365,5 +DA:366,5 DA:376,18 DA:378,18 -DA:379,18 DA:380,18 -DA:381,18 DA:382,18 -DA:383,18 DA:384,18 -DA:385,18 DA:386,18 -DA:387,18 DA:388,18 DA:389,18 DA:390,18 @@ -7640,8 +7642,19 @@ DA:425,18 DA:426,18 DA:427,18 DA:428,18 -LF:195 -LH:173 +DA:429,18 +DA:430,18 +DA:431,18 +DA:432,18 +DA:433,18 +DA:434,18 +DA:435,18 +DA:436,18 +DA:437,18 +DA:438,18 +DA:439,18 +LF:200 +LH:178 BRDA:16,0,0,2 BRDA:16,0,1,1 BRDA:59,1,0,1 @@ -7698,8 +7711,10 @@ BRDA:299,26,0,0 BRDA:299,26,1,0 BRDA:320,27,0,0 BRDA:320,27,1,0 -BRF:56 -BRH:46 +BRDA:342,28,0,1 +BRDA:342,28,1,4 +BRF:58 +BRH:48 end_of_record TN: SF:/home/awhite/dev/andywhite37/relude/lib/js/src/array/Relude_Array_Instances.bs.js @@ -9880,17 +9895,19 @@ FN:406,(anonymous_54) FN:419,distinct FN:423,removeFirst FN:427,removeEach -FN:431,scanLeft +FN:431,replaceAt FN:432,(anonymous_59) -FN:447,scanRight -FN:448,(anonymous_61) -FNF:62 -FNH:57 +FN:441,scanLeft +FN:442,(anonymous_61) +FN:457,scanRight +FN:458,(anonymous_63) +FNF:64 +FNH:59 FNDA:2,cons FNDA:3,uncons FNDA:21,append -FNDA:1,mapWithIndex -FNDA:3,(anonymous_4) +FNDA:2,mapWithIndex +FNDA:8,(anonymous_4) FNDA:4,isEmpty FNDA:2,isNotEmpty FNDA:3,at @@ -9944,10 +9961,12 @@ FNDA:11,(anonymous_54) FNDA:0,distinct FNDA:0,removeFirst FNDA:0,removeEach -FNDA:1,scanLeft +FNDA:1,replaceAt FNDA:5,(anonymous_59) -FNDA:1,scanRight +FNDA:1,scanLeft FNDA:5,(anonymous_61) +FNDA:1,scanRight +FNDA:5,(anonymous_63) DA:3,18 DA:4,18 DA:5,18 @@ -9959,8 +9978,8 @@ DA:18,3 DA:19,2 DA:28,21 DA:34,18 -DA:37,1 -DA:38,3 +DA:37,2 +DA:38,8 DA:43,4 DA:44,2 DA:46,2 @@ -10118,26 +10137,20 @@ DA:424,0 DA:428,0 DA:432,1 DA:433,5 -DA:434,5 -DA:448,1 -DA:449,5 -DA:450,5 -DA:463,18 -DA:465,18 -DA:467,18 -DA:469,18 -DA:471,18 +DA:434,1 +DA:436,4 +DA:442,1 +DA:443,5 +DA:444,5 +DA:458,1 +DA:459,5 +DA:460,5 DA:473,18 DA:475,18 -DA:476,18 DA:477,18 -DA:478,18 DA:479,18 -DA:480,18 DA:481,18 -DA:482,18 DA:483,18 -DA:484,18 DA:485,18 DA:486,18 DA:487,18 @@ -10178,8 +10191,19 @@ DA:521,18 DA:522,18 DA:523,18 DA:524,18 -LF:230 -LH:224 +DA:525,18 +DA:526,18 +DA:527,18 +DA:528,18 +DA:529,18 +DA:530,18 +DA:531,18 +DA:532,18 +DA:533,18 +DA:534,18 +DA:535,18 +LF:235 +LH:229 BRDA:18,0,0,2 BRDA:18,0,1,1 BRDA:43,1,0,2 @@ -10236,8 +10260,10 @@ BRDA:383,26,0,5 BRDA:383,26,1,4 BRDA:408,27,0,6 BRDA:408,27,1,5 -BRF:56 -BRH:55 +BRDA:433,28,0,1 +BRDA:433,28,1,4 +BRF:58 +BRH:57 end_of_record TN: SF:/home/awhite/dev/andywhite37/relude/lib/js/src/list/Relude_List_Instances.bs.js