@@ -6,137 +6,49 @@ const Black = /* #__PURE__ */ $Color("Black");
66const Leaf = /* #__PURE__ */ $RedBlackTree("Leaf");
77const Node = value0 => value1 => value2 => value3 => $RedBlackTree("Node", value0, value1, value2, value3);
88const test1 = () => v => {
9− if (v.tag === "Node") {
10− if (v._1 === "Black") {
11− if (v._2.tag === "Node") {
12− if (v._2._1 === "Red") {
13− if (v._2._2.tag === "Node") {
14− if (v._2._2._1 === "Red") { return {i: 1, a: v._2._2._2, x: v._2._2._3, b: v._2._2._4, y: v._2._3, c: v._2._4, z: v._3, d: v._4}; }
15− if (v._2._4.tag === "Node") {
16− if (v._2._4._1 === "Red") { return {i: 2, a: v._2._2, x: v._2._3, b: v._2._4._2, y: v._2._4._3, c: v._2._4._4, z: v._3, d: v._4}; }
17− if (v._4.tag === "Node") {
18− if (v._4._1 === "Red") {
19− if (v._4._2.tag === "Node") {
20− if (v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
21− if (v._4._4.tag === "Node") {
22− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
23− $runtime.fail();
24− }
25− $runtime.fail();
26− }
27− if (v._4._4.tag === "Node") {
28− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
29− $runtime.fail();
30− }
31− $runtime.fail();
32− }
33− $runtime.fail();
34− }
35− $runtime.fail();
36− }
37− if (v._4.tag === "Node") {
38− if (v._4._1 === "Red") {
39− if (v._4._2.tag === "Node") {
40− if (v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
41− if (v._4._4.tag === "Node") {
42− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
43− $runtime.fail();
44− }
45− $runtime.fail();
46− }
47− if (v._4._4.tag === "Node") {
48− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
49− $runtime.fail();
50− }
51− $runtime.fail();
52− }
53− $runtime.fail();
54− }
55− $runtime.fail();
56− }
9+ if (v.tag === "Node" && v._1 === "Black") {
10+ if (v._2.tag === "Node") {
11+ if (v._2._1 === "Red") {
12+ if (v._2._2.tag === "Node") {
13+ if (v._2._2._1 === "Red") { return {i: 1, a: v._2._2._2, x: v._2._2._3, b: v._2._2._4, y: v._2._3, c: v._2._4, z: v._3, d: v._4}; }
5714 if (v._2._4.tag === "Node") {
5815 if (v._2._4._1 === "Red") { return {i: 2, a: v._2._2, x: v._2._3, b: v._2._4._2, y: v._2._4._3, c: v._2._4._4, z: v._3, d: v._4}; }
59− if (v._4.tag === "Node") {
60− if (v._4._1 === "Red") {
61− if (v._4._2.tag === "Node") {
62− if (v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
63− if (v._4._4.tag === "Node") {
64− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
65− $runtime.fail();
66− }
67− $runtime.fail();
68− }
69− if (v._4._4.tag === "Node") {
70− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
71− $runtime.fail();
72− }
73− $runtime.fail();
74− }
75− $runtime.fail();
16+ if (v._4.tag === "Node" && v._4._1 === "Red") {
17+ if (v._4._2.tag === "Node" && v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
18+ if (v._4._4.tag === "Node" && v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
7619 }
7720 $runtime.fail();
7821 }
79− if (v._4.tag === "Node") {
80− if (v._4._1 === "Red") {
81− if (v._4._2.tag === "Node") {
82− if (v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
83− if (v._4._4.tag === "Node") {
84− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
85− $runtime.fail();
86− }
87− $runtime.fail();
88− }
89− if (v._4._4.tag === "Node") {
90− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
91− $runtime.fail();
92− }
93− $runtime.fail();
94− }
95− $runtime.fail();
22+ if (v._4.tag === "Node" && v._4._1 === "Red") {
23+ if (v._4._2.tag === "Node" && v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
24+ if (v._4._4.tag === "Node" && v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
9625 }
9726 $runtime.fail();
9827 }
99− if (v._4.tag === "Node") {
100− if (v._4._1 === "Red") {
101− if (v._4._2.tag === "Node") {
102− if (v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
103− if (v._4._4.tag === "Node") {
104− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
105− $runtime.fail();
106− }
107− $runtime.fail();
108− }
109− if (v._4._4.tag === "Node") {
110− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
111− $runtime.fail();
112− }
113− $runtime.fail();
28+ if (v._2._4.tag === "Node") {
29+ if (v._2._4._1 === "Red") { return {i: 2, a: v._2._2, x: v._2._3, b: v._2._4._2, y: v._2._4._3, c: v._2._4._4, z: v._3, d: v._4}; }
30+ if (v._4.tag === "Node" && v._4._1 === "Red") {
31+ if (v._4._2.tag === "Node" && v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
32+ if (v._4._4.tag === "Node" && v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
11433 }
11534 $runtime.fail();
11635 }
117− $runtime.fail();
118− }
119− if (v._4.tag === "Node") {
120− if (v._4._1 === "Red") {
121− if (v._4._2.tag === "Node") {
122− if (v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
123− if (v._4._4.tag === "Node") {
124− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
125− $runtime.fail();
126− }
127− $runtime.fail();
128− }
129− if (v._4._4.tag === "Node") {
130− if (v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
131− $runtime.fail();
132− }
133− $runtime.fail();
36+ if (v._4.tag === "Node" && v._4._1 === "Red") {
37+ if (v._4._2.tag === "Node" && v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
38+ if (v._4._4.tag === "Node" && v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
13439 }
13540 $runtime.fail();
13641 }
42+ if (v._4.tag === "Node" && v._4._1 === "Red") {
43+ if (v._4._2.tag === "Node" && v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
44+ if (v._4._4.tag === "Node" && v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
45+ }
13746 $runtime.fail();
13847 }
139− $runtime.fail();
48+ if (v._4.tag === "Node" && v._4._1 === "Red") {
49+ if (v._4._2.tag === "Node" && v._4._2._1 === "Red") { return {i: 3, a: v._2, x: v._3, b: v._4._2._2, y: v._4._2._3, c: v._4._2._4, z: v._4._3, d: v._4._4}; }
50+ if (v._4._4.tag === "Node" && v._4._4._1 === "Red") { return {i: 4, a: v._2, x: v._3, b: v._4._2, y: v._4._3, c: v._4._4._2, z: v._4._4._3, d: v._4._4._4}; }
51+ }
14052 }
14153 $runtime.fail();
14254};