@@ -1,44 +1,36 @@
1−import * as $runtime from "../runtime.js";
2−import * as Data$dArray from "../Data.Array/index.js";
31const test1 = test1$a0$copy => test1$a1$copy => {
42 let test1$a0 = test1$a0$copy, test1$a1 = test1$a1$copy, test1$c = true, test1$r;
53 while (test1$c) {
64 const b = test1$a0, arr = test1$a1;
7− const v = Data$dArray.last(arr);
8− if (0 < arr.length) {
9− if (v.tag === "Just") {
10− if (v._1 === 2 && arr[0] === 1) {
5+ const $0 = arr.length - 1 | 0;
6+ if ($0 >= 0 && $0 < arr.length) {
7+ if (0 < arr.length) {
8+ if (arr[$0] === 2 && arr[0] === 1) {
119 test1$c = false;
1210 test1$r = arr;
1311 continue;
1412 }
13+ const $1 = arr[$0];
1514 if (b) {
1615 test1$c = false;
1716 test1$r = [];
1817 continue;
1918 }
2019 test1$a0 = b;
21− test1$a1 = [v._1, arr[0], 3, v._1, 5, 6, 7, 8, 9, 10, arr[0], 12, 13, 14, 15, 16, 17, ...arr];
22− continue;
23− }
24− if (v.tag === "Nothing") {
25− test1$c = false;
26− test1$r = [...arr, arr[0]];
20+ test1$a1 = [$1, arr[0], 3, $1, 5, 6, 7, 8, 9, 10, arr[0], 12, 13, 14, 15, 16, 17, ...arr];
2721 continue;
2822 }
29− $runtime.fail();
30− }
31− if (v.tag === "Just") {
3223 test1$c = false;
33− test1$r = [...arr, v._1];
24+ test1$r = [...arr, arr[$0]];
3425 continue;
3526 }
36− if (v.tag === "Nothing") {
27+ if (0 < arr.length) {
3728 test1$c = false;
38− test1$r = arr;
29+ test1$r = [...arr, arr[0]];
3930 continue;
4031 }
41− $runtime.fail();
32+ test1$c = false;
33+ test1$r = arr;
4234 }
4335 return test1$r;
4436};