@@ -1,44 +1,36 @@
1−import * as $runtime from "../runtime.js";
2−import * as Data$dArray from "../Data.Array/index.js";
3const test1 = test1$a0$copy => test1$a1$copy => {
1const test1 = test1$a0$copy => test1$a1$copy => {
4 let test1$a0 = test1$a0$copy, test1$a1 = test1$a1$copy, test1$c = true, test1$r;
2 let test1$a0 = test1$a0$copy, test1$a1 = test1$a1$copy, test1$c = true, test1$r;
5 while (test1$c) {
3 while (test1$c) {
6 const b = test1$a0, arr = test1$a1;
4 const b = test1$a0, arr = test1$a1;
7− const v = Data$dArray.last(arr);
5+ const $0 = arr.length - 1 | 0;
8− if (0 < arr.length) {
6+ if ($0 >= 0 && $0 < arr.length) {
9− if (v.tag === "Just") {
7+ if (0 < arr.length) {
10− if (v._1 === 2 && arr[0] === 1) {
8+ if (arr[$0] === 2 && arr[0] === 1) {
11 test1$c = false;
9 test1$c = false;
12 test1$r = arr;
10 test1$r = arr;
16 test1$c = false;
15 test1$c = false;
17 test1$r = [];
16 test1$r = [];
20 test1$a0 = b;
19 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];
20+ test1$a1 = [$1, arr[0], 3, $1, 5, 6, 7, 8, 9, 10, arr[0], 12, 13, 14, 15, 16, 17, ...arr];
24− if (v.tag === "Nothing") {
26− test1$r = [...arr, arr[0]];
31− if (v.tag === "Just") {
32 test1$c = false;
23 test1$c = false;
33− test1$r = [...arr, v._1];
24+ test1$r = [...arr, arr[$0]];
36− if (v.tag === "Nothing") {
27+ if (0 < arr.length) {
37 test1$c = false;
28 test1$c = false;
38− test1$r = arr;
29+ test1$r = [...arr, arr[0]];
41− $runtime.fail();
32+ test1$c = false;
43 return test1$r;
35 return test1$r;