@explorable-viz/fluid 0.7.75 → 0.7.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/fluid/fluid/lib/convolution.fld +27 -12
- package/dist/fluid/shared/fluid.mjs +231 -143
- package/dist/fluid/shared/load-figure.js +229 -149
- package/package.json +2 -1
- package/script/bundle-website.sh +3 -5
@@ -27879,17 +27879,21 @@ var showEdgeList = (es) => joinWith("\n")([
|
|
27879
27879
|
"digraph G {",
|
27880
27880
|
...arrayMap((v) => " " + v)([
|
27881
27881
|
"rankdir = RL",
|
27882
|
-
...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
|
27882
|
+
...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2._1))) + "}")(fromFoldable13(reverse2(es)))
|
27883
27883
|
]),
|
27884
27884
|
"}"
|
27885
27885
|
]);
|
27886
|
+
var pack1 = (x2) => (k) => k(showString)(x2);
|
27886
27887
|
var toEdgeList = (dictGraph) => (g) => {
|
27887
27888
|
const $0 = (v) => {
|
27888
27889
|
if (v._1.tag === "Nil") {
|
27889
27890
|
return $Step("Done", v._2);
|
27890
27891
|
}
|
27891
27892
|
if (v._1.tag === "Cons") {
|
27892
|
-
return $Step(
|
27893
|
+
return $Step(
|
27894
|
+
"Loop",
|
27895
|
+
$Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, $Tuple(dictGraph.outN(g)(v._1._1), pack1(""))), v._2))
|
27896
|
+
);
|
27893
27897
|
}
|
27894
27898
|
fail();
|
27895
27899
|
};
|
@@ -28161,14 +28165,15 @@ var $GraphImpl = (_1) => ({ tag: "GraphImpl", _1 });
|
|
28161
28165
|
var eqSet = { eq: (v) => (v1) => eqMap(eqVertex)(eqUnit).eq(v)(v1) };
|
28162
28166
|
var eq = /* @__PURE__ */ (() => eqObject(eqSet).eq)();
|
28163
28167
|
var fromFoldable6 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2);
|
28168
|
+
var pack = (x2) => (k) => k(showString)(x2);
|
28164
28169
|
var toUnfoldable6 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
|
28165
28170
|
var fromFoldable15 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
|
28166
28171
|
var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2))();
|
28167
28172
|
var toUnfoldable12 = /* @__PURE__ */ toAscUnfoldable(unfoldableArray);
|
28168
28173
|
var fromFoldable32 = /* @__PURE__ */ fromFoldable2(ordVertex)(foldableArray);
|
28169
28174
|
var verticesGraphImpl = { vertices: (v) => v._1.vertices };
|
28170
|
-
var eqGraphImpl = { eq: (v) => (v1) => eq(v._1.out)(v1._1.out) };
|
28171
|
-
var sinks$p = (m) => fromFoldable6(arrayMap((x2) => x2._1)(filter((x2) => x2._2.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
|
28175
|
+
var eqGraphImpl = { eq: (v) => (v1) => eq(_fmapObject(v._1.out, fst))(_fmapObject(v1._1.out, fst)) };
|
28176
|
+
var sinks$p = (m) => fromFoldable6(arrayMap((x2) => x2._1)(filter((x2) => x2._2._1.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
|
28172
28177
|
var init5 = (\u03B1s) => () => {
|
28173
28178
|
const obj = {};
|
28174
28179
|
return monadRecST.tailRecM((v) => {
|
@@ -28180,7 +28185,7 @@ var init5 = (\u03B1s) => () => {
|
|
28180
28185
|
const $1 = v._1._2;
|
28181
28186
|
const $2 = v._2;
|
28182
28187
|
return () => {
|
28183
|
-
$2[$0] = Leaf2;
|
28188
|
+
$2[$0] = $Tuple(Leaf2, pack("uninit: init"));
|
28184
28189
|
return $Step("Loop", $Tuple($1, $2));
|
28185
28190
|
};
|
28186
28191
|
}
|
@@ -28216,7 +28221,7 @@ var addIfMissing = (acc) => (v) => {
|
|
28216
28221
|
return () => {
|
28217
28222
|
const v1 = $0();
|
28218
28223
|
if (v1.tag === "Nothing") {
|
28219
|
-
acc[v] = Leaf2;
|
28224
|
+
acc[v] = $Tuple(Leaf2, pack("uninit: missing"));
|
28220
28225
|
return acc;
|
28221
28226
|
}
|
28222
28227
|
if (v1.tag === "Just") {
|
@@ -28250,27 +28255,28 @@ var outMap = (\u03B1s) => (es) => {
|
|
28250
28255
|
if (v._1.tag === "Cons") {
|
28251
28256
|
const $1 = v._2;
|
28252
28257
|
const $2 = v._1._2;
|
28253
|
-
const $3 = v._1._1.
|
28254
|
-
const $4 = v._1._1.
|
28255
|
-
const $5 =
|
28258
|
+
const $3 = v._1._1._2._2;
|
28259
|
+
const $4 = v._1._1._1;
|
28260
|
+
const $5 = v._1._1._2._1;
|
28261
|
+
const $6 = peek($4)($1);
|
28256
28262
|
return () => {
|
28257
|
-
const $
|
28263
|
+
const $7 = $6();
|
28258
28264
|
if ((() => {
|
28259
|
-
if ($
|
28265
|
+
if ($7.tag === "Nothing") {
|
28260
28266
|
return true;
|
28261
28267
|
}
|
28262
|
-
if ($
|
28263
|
-
return eqMap(eqVertex)(eqUnit).eq($
|
28268
|
+
if ($7.tag === "Just") {
|
28269
|
+
return eqMap(eqVertex)(eqUnit).eq($7._1._1)(Leaf2);
|
28264
28270
|
}
|
28265
28271
|
fail();
|
28266
28272
|
})()) {
|
28267
|
-
const \u03B2s$p = toUnfoldable6($
|
28273
|
+
const \u03B2s$p = toUnfoldable6($5);
|
28268
28274
|
monadRecST.tailRecM(assertPresent($1))(\u03B2s$p)();
|
28269
|
-
$1[$
|
28275
|
+
$1[$4] = $Tuple($5, $3);
|
28270
28276
|
const acc$p = addIfMissing$p(\u03B2s$p)($1)();
|
28271
28277
|
return $Step("Loop", $Tuple($2, acc$p));
|
28272
28278
|
}
|
28273
|
-
return throwException(error("Duplicate edge list entry for " + showStringImpl($
|
28279
|
+
return throwException(error("Duplicate edge list entry for " + showStringImpl($4)))()();
|
28274
28280
|
};
|
28275
28281
|
}
|
28276
28282
|
fail();
|
@@ -28287,37 +28293,38 @@ var inMap = (\u03B1s) => (es) => {
|
|
28287
28293
|
}
|
28288
28294
|
if (v._1.tag === "Cons") {
|
28289
28295
|
const $1 = v._1._2;
|
28290
|
-
const $2 = v._1._1.
|
28291
|
-
const $3 =
|
28292
|
-
|
28293
|
-
|
28296
|
+
const $2 = v._1._1._2._2;
|
28297
|
+
const $3 = v._1._1._1;
|
28298
|
+
const $4 = monadRecST.tailRecM((v2) => {
|
28299
|
+
if (v2._1.tag === "Nil") {
|
28300
|
+
return () => $Step("Done", v2._2);
|
28294
28301
|
}
|
28295
|
-
if (
|
28296
|
-
const $
|
28297
|
-
const $
|
28298
|
-
const $
|
28299
|
-
const $
|
28302
|
+
if (v2._1.tag === "Cons") {
|
28303
|
+
const $42 = v2._2;
|
28304
|
+
const $5 = v2._1._1;
|
28305
|
+
const $6 = v2._1._2;
|
28306
|
+
const $7 = peek($5)($42);
|
28300
28307
|
return () => {
|
28301
|
-
const v1
|
28308
|
+
const v1 = $7();
|
28302
28309
|
const acc$p = (() => {
|
28303
|
-
if (v1
|
28304
|
-
$
|
28305
|
-
return $
|
28310
|
+
if (v1.tag === "Nothing") {
|
28311
|
+
$42[$5] = $Tuple($$$Map("Two", Leaf2, $3, void 0, Leaf2), $2);
|
28312
|
+
return $42;
|
28306
28313
|
}
|
28307
|
-
if (v1
|
28308
|
-
$
|
28309
|
-
return $
|
28314
|
+
if (v1.tag === "Just") {
|
28315
|
+
$42[$5] = $Tuple(insert3(ordVertex)($3)()(v1._1._1), $2);
|
28316
|
+
return $42;
|
28310
28317
|
}
|
28311
28318
|
fail();
|
28312
28319
|
})();
|
28313
|
-
return $Step("Loop", $Tuple($
|
28320
|
+
return $Step("Loop", $Tuple($6, acc$p));
|
28314
28321
|
};
|
28315
28322
|
}
|
28316
28323
|
fail();
|
28317
|
-
})($Tuple(toUnfoldable6(v._1._1._2), v._2));
|
28324
|
+
})($Tuple(toUnfoldable6(v._1._1._2._1), v._2));
|
28318
28325
|
return () => {
|
28319
|
-
const a = $
|
28320
|
-
const acc$p = addIfMissing(a)($
|
28326
|
+
const a = $4();
|
28327
|
+
const acc$p = addIfMissing(a)($3)();
|
28321
28328
|
return $Step("Loop", $Tuple($1, acc$p));
|
28322
28329
|
};
|
28323
28330
|
}
|
@@ -28326,7 +28333,8 @@ var inMap = (\u03B1s) => (es) => {
|
|
28326
28333
|
};
|
28327
28334
|
};
|
28328
28335
|
var graphGraphImpl = {
|
28329
|
-
outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out)),
|
28336
|
+
outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._1,
|
28337
|
+
vertexData: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._2,
|
28330
28338
|
inN: (g) => graphGraphImpl.outN(graphGraphImpl.op(g)),
|
28331
28339
|
elem: (\u03B1) => (v) => {
|
28332
28340
|
const $0 = _lookup(Nothing, Just, \u03B1, v._1.out);
|
@@ -28365,7 +28373,7 @@ var graphGraphImpl = {
|
|
28365
28373
|
topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable32(arrayMap((x2) => $Tuple(
|
28366
28374
|
x2._1,
|
28367
28375
|
$Tuple(void 0, x2._2)
|
28368
|
-
))(toUnfoldable12(_fmapObject(v._1.out, toUnfoldable6)))))),
|
28376
|
+
))(toUnfoldable12(_fmapObject(_fmapObject(v._1.out, fst), toUnfoldable6)))))),
|
28369
28377
|
Eq0: () => eqGraphImpl,
|
28370
28378
|
Vertices1: () => verticesGraphImpl
|
28371
28379
|
};
|
@@ -34054,6 +34062,32 @@ var Dictionary3 = (value0) => $BaseVal("Dictionary", value0);
|
|
34054
34062
|
var DictRep = (x2) => x2;
|
34055
34063
|
var MatrixRep = (x2) => x2;
|
34056
34064
|
var Env = (x2) => x2;
|
34065
|
+
var showBaseVal = {
|
34066
|
+
show: (v) => {
|
34067
|
+
if (v.tag === "Int") {
|
34068
|
+
return showIntImpl(v._1);
|
34069
|
+
}
|
34070
|
+
if (v.tag === "Float") {
|
34071
|
+
return showNumberImpl(v._1);
|
34072
|
+
}
|
34073
|
+
if (v.tag === "Str") {
|
34074
|
+
return showStringImpl(v._1);
|
34075
|
+
}
|
34076
|
+
if (v.tag === "Constr") {
|
34077
|
+
return showStringImpl(v._1);
|
34078
|
+
}
|
34079
|
+
if (v.tag === "Dictionary") {
|
34080
|
+
return "Dictionary";
|
34081
|
+
}
|
34082
|
+
if (v.tag === "Matrix") {
|
34083
|
+
return "Matrix";
|
34084
|
+
}
|
34085
|
+
if (v.tag === "Fun") {
|
34086
|
+
return "Function";
|
34087
|
+
}
|
34088
|
+
fail();
|
34089
|
+
}
|
34090
|
+
};
|
34057
34091
|
var isEmptyEnv = { isEmpty: (v) => isEmpty(v) };
|
34058
34092
|
var setEnvString = {
|
34059
34093
|
empty,
|
@@ -34864,7 +34898,7 @@ var string2 = {
|
|
34864
34898
|
return typeError(v)("Str");
|
34865
34899
|
}
|
34866
34900
|
};
|
34867
|
-
var unary = (dictBoundedJoinSemilattice) => {
|
34901
|
+
var unary = (dictShow) => (dictBoundedJoinSemilattice) => {
|
34868
34902
|
const bot2 = dictBoundedJoinSemilattice.bot;
|
34869
34903
|
return (id3) => (f) => $Tuple(
|
34870
34904
|
id3,
|
@@ -34882,17 +34916,17 @@ var unary = (dictBoundedJoinSemilattice) => {
|
|
34882
34916
|
const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
|
34883
34917
|
return (v) => {
|
34884
34918
|
if (v.tag === "Cons" && v._2.tag === "Nil") {
|
34885
|
-
const $
|
34919
|
+
const v$p = f.fwd(f.i.unpack(v._1._2));
|
34886
34920
|
return $0.map((() => {
|
34887
|
-
const $
|
34888
|
-
return (v$1) => $Val(v$1._2, $
|
34889
|
-
})())($0.map((v2) => $Tuple(
|
34921
|
+
const $1 = f.o;
|
34922
|
+
return (v$1) => $Val(v$1._2, $1.pack(v$1._1));
|
34923
|
+
})())($0.map((v2) => $Tuple(v$p, v2))(dictMonadWithGraphAlloc.new($$$Map(
|
34890
34924
|
"Two",
|
34891
34925
|
Leaf2,
|
34892
34926
|
v._1._1,
|
34893
34927
|
void 0,
|
34894
34928
|
Leaf2
|
34895
|
-
))));
|
34929
|
+
))((k) => k(dictShow)(v$p))));
|
34896
34930
|
}
|
34897
34931
|
fail();
|
34898
34932
|
};
|
@@ -35021,7 +35055,7 @@ var $$boolean = {
|
|
35021
35055
|
return typeError(v)("Boolean");
|
35022
35056
|
}
|
35023
35057
|
};
|
35024
|
-
var binaryZero = (dictBoundedJoinSemilattice) => {
|
35058
|
+
var binaryZero = (dictShow) => (dictBoundedJoinSemilattice) => {
|
35025
35059
|
const bot2 = dictBoundedJoinSemilattice.bot;
|
35026
35060
|
return (dictIsZero) => (id3) => (f) => $Tuple(
|
35027
35061
|
id3,
|
@@ -35041,10 +35075,11 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
|
|
35041
35075
|
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
|
35042
35076
|
const $1 = f.i.unpack(v._1._2);
|
35043
35077
|
const $2 = f.i.unpack(v._2._1._2);
|
35078
|
+
const v$p = f.fwd($1)($2);
|
35044
35079
|
return $0.map((() => {
|
35045
35080
|
const $3 = f.o;
|
35046
35081
|
return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
|
35047
|
-
})())($0.map((v4) => $Tuple(
|
35082
|
+
})())($0.map((v4) => $Tuple(v$p, v4))(dictMonadWithGraphAlloc.new((() => {
|
35048
35083
|
if (dictIsZero.isZero($1)) {
|
35049
35084
|
return $$$Map("Two", Leaf2, v._1._1, void 0, Leaf2);
|
35050
35085
|
}
|
@@ -35058,7 +35093,7 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
|
|
35058
35093
|
void 0,
|
35059
35094
|
Leaf2
|
35060
35095
|
));
|
35061
|
-
})())));
|
35096
|
+
})())((k) => k(dictShow)(v$p))));
|
35062
35097
|
}
|
35063
35098
|
fail();
|
35064
35099
|
};
|
@@ -35109,7 +35144,7 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
|
|
35109
35144
|
)
|
35110
35145
|
);
|
35111
35146
|
};
|
35112
|
-
var binary = (dictBoundedJoinSemilattice) => {
|
35147
|
+
var binary = (dictShow) => (dictBoundedJoinSemilattice) => {
|
35113
35148
|
const bot2 = dictBoundedJoinSemilattice.bot;
|
35114
35149
|
return (id3) => (f) => $Tuple(
|
35115
35150
|
id3,
|
@@ -35127,18 +35162,17 @@ var binary = (dictBoundedJoinSemilattice) => {
|
|
35127
35162
|
const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
|
35128
35163
|
return (v) => {
|
35129
35164
|
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
|
35130
|
-
const $
|
35131
|
-
const $2 = v._2._1._2;
|
35165
|
+
const v$p = f.fwd(f.i1.unpack(v._1._2))(f.i2.unpack(v._2._1._2));
|
35132
35166
|
return $0.map((() => {
|
35133
|
-
const $
|
35134
|
-
return (v$1) => $Val(v$1._2, $
|
35135
|
-
})())($0.map((v3) => $Tuple(
|
35167
|
+
const $1 = f.o;
|
35168
|
+
return (v$1) => $Val(v$1._2, $1.pack(v$1._1));
|
35169
|
+
})())($0.map((v3) => $Tuple(v$p, v3))(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
|
35136
35170
|
"Two",
|
35137
35171
|
Leaf2,
|
35138
35172
|
v._1._1,
|
35139
35173
|
void 0,
|
35140
35174
|
Leaf2
|
35141
|
-
)))));
|
35175
|
+
)))((k) => k(dictShow)(v$p))));
|
35142
35176
|
}
|
35143
35177
|
fail();
|
35144
35178
|
};
|
@@ -37685,9 +37719,9 @@ var drawableTableView = {
|
|
37685
37719
|
var arrayDictToArray2 = (x2) => arrayMap((a) => arrayMap((a$1) => $$get2(showString)(mapDictString)(a$1)(a))(x2));
|
37686
37720
|
|
37687
37721
|
// output-es/App.View/index.js
|
37688
|
-
var
|
37689
|
-
var
|
37690
|
-
var
|
37722
|
+
var pack2 = (x2) => (k) => k(drawableBarChart)(x2);
|
37723
|
+
var pack12 = (x2) => (k) => k(drawableLineChart)(x2);
|
37724
|
+
var pack22 = (x2) => (k) => k(drawableScatterPlot)(x2);
|
37691
37725
|
var pack3 = (x2) => (k) => k(drawableParagraphSelState)(x2);
|
37692
37726
|
var pack4 = (x2) => (k) => k(drawableMultiView)(x2);
|
37693
37727
|
var identity28 = (x2) => x2;
|
@@ -37697,13 +37731,13 @@ var view = () => (v) => (v1) => (v2) => {
|
|
37697
37731
|
if (v1._2.tag === "Constr") {
|
37698
37732
|
if (v1._2._2.tag === "Cons" && v1._2._2._2.tag === "Nil") {
|
37699
37733
|
if (v1._2._1 === "BarChart") {
|
37700
|
-
return
|
37734
|
+
return pack2(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
|
37701
37735
|
}
|
37702
37736
|
if (v1._2._1 === "LineChart") {
|
37703
|
-
return
|
37737
|
+
return pack12(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
|
37704
37738
|
}
|
37705
37739
|
if (v1._2._1 === "ScatterPlot") {
|
37706
|
-
return
|
37740
|
+
return pack22(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
|
37707
37741
|
}
|
37708
37742
|
if (v1._2._1 === "Paragraph") {
|
37709
37743
|
return pack3(reflectValSelState\u{1D54A}Paragr.from()(v1._2._2._1));
|
@@ -37819,8 +37853,8 @@ var monadWithGraphWithGraphT = (dictMonad) => {
|
|
37819
37853
|
const $1 = monadStateStateT(dictMonad);
|
37820
37854
|
const monadStateT = { Applicative0: () => applicativeStateT(dictMonad), Bind1: () => bindStateT(dictMonad) };
|
37821
37855
|
return {
|
37822
|
-
extend: (\u03B1) => (\u03B1s) => {
|
37823
|
-
const $2 = Cons($Tuple(\u03B1, \u03B1s));
|
37856
|
+
extend: (\u03B1) => (\u03B1s) => (vd) => {
|
37857
|
+
const $2 = Cons($Tuple(\u03B1, $Tuple(\u03B1s, vd)));
|
37824
37858
|
const $3 = $1.state((s) => $Tuple(void 0, $2(s)));
|
37825
37859
|
return (s) => $0.map((v1) => $Tuple(void 0, v1._2))($3(s));
|
37826
37860
|
},
|
@@ -37882,10 +37916,10 @@ var runWithGraphT = (dictMonad) => {
|
|
37882
37916
|
};
|
37883
37917
|
};
|
37884
37918
|
var runWithGraphT_spy = (dictMonad) => {
|
37885
|
-
const
|
37919
|
+
const runWithGraphT1 = runWithGraphT(dictMonad);
|
37886
37920
|
const spyFunWhenM2 = spyFunWhenM(dictMonad.Bind1().Apply0().Functor0());
|
37887
37921
|
return (dictGraph) => {
|
37888
|
-
const $0 =
|
37922
|
+
const $0 = runWithGraphT1(dictGraph);
|
37889
37923
|
const $1 = spyFunWhenM2(false)("runWithGraphT")(showVertices)((x2) => showEdgeList(toEdgeList(dictGraph)(x2._1)));
|
37890
37924
|
return (x2) => $1($0(x2));
|
37891
37925
|
};
|
@@ -37900,7 +37934,7 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
|
|
37900
37934
|
const monadWithGraphWithGraphT1 = monadWithGraphWithGraphT(monadStateT);
|
37901
37935
|
const monadErrorStateT2 = monadErrorStateT(monadErrorStateT(dictMonadError));
|
37902
37936
|
return {
|
37903
|
-
new: (\u03B1s) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s))(() => applicativeStateT(monadStateT).pure(\u03B1))),
|
37937
|
+
new: (\u03B1s) => (vd) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s)(vd))(() => applicativeStateT(monadStateT).pure(\u03B1))),
|
37904
37938
|
MonadAlloc0: () => monadAllocWithGraphAllocT1,
|
37905
37939
|
MonadError1: () => monadErrorStateT2,
|
37906
37940
|
MonadWithGraph2: () => monadWithGraphWithGraphT1
|
@@ -37910,6 +37944,7 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
|
|
37910
37944
|
// output-es/Graph.Slice/index.js
|
37911
37945
|
var pure2 = /* @__PURE__ */ (() => applicativeStateT(monadIdentity).pure)();
|
37912
37946
|
var extend3 = /* @__PURE__ */ (() => monadWithGraphWithGraphT(monadIdentity).extend)();
|
37947
|
+
var pack7 = (x2) => (k) => k(showString)(x2);
|
37913
37948
|
var tailRecM = /* @__PURE__ */ (() => monadRecStateT(monadRecIdentity).tailRecM)();
|
37914
37949
|
var member4 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
|
37915
37950
|
var fromFoldable19 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
|
@@ -37935,7 +37970,7 @@ var fwdSlice = (dictGraph) => {
|
|
37935
37970
|
fail();
|
37936
37971
|
})();
|
37937
37972
|
if (eqMap(eqVertex)(eqUnit).eq(\u03B2s)(dictGraph.outN($0)(v1.es._1._1))) {
|
37938
|
-
return bindStateT(monadIdentity).bind(extend3(v1.es._1._1)(\u03B2s))(() => pure2($Step(
|
37973
|
+
return bindStateT(monadIdentity).bind(extend3(v1.es._1._1)(\u03B2s)(pack7("uninit: fwd")))(() => pure2($Step(
|
37939
37974
|
"Loop",
|
37940
37975
|
{
|
37941
37976
|
pending: $$delete3(ordVertex)(v1.es._1._1)(v1.pending),
|
@@ -37960,10 +37995,12 @@ var bwdSlice = (dictGraph) => {
|
|
37960
37995
|
return pure2($Step("Done", void 0));
|
37961
37996
|
}
|
37962
37997
|
if (v1.pending.tag === "Cons") {
|
37998
|
+
const $2 = v1.pending._1._2._2;
|
37999
|
+
const $3 = v1.pending._1._2._1;
|
37963
38000
|
if (member4(v1.pending._1._1)(v1.visited)) {
|
37964
38001
|
return pure2($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
|
37965
38002
|
}
|
37966
|
-
return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)(v1.pending._1.
|
38003
|
+
return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)($3)(spyWhen(true)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure2($Step(
|
37967
38004
|
"Loop",
|
37968
38005
|
{ visited: insert3(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
|
37969
38006
|
)));
|
@@ -37977,7 +38014,7 @@ var bwdSlice = (dictGraph) => {
|
|
37977
38014
|
{
|
37978
38015
|
visited: v1.visited,
|
37979
38016
|
"\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable19(\u03B2s)),
|
37980
|
-
pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, \u03B2s), v1.pending)
|
38017
|
+
pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, $Tuple(\u03B2s, dictGraph.vertexData($0)(v1["\u03B1s"]._1))), v1.pending)
|
37981
38018
|
}
|
37982
38019
|
));
|
37983
38020
|
}
|
@@ -37998,6 +38035,7 @@ var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
|
|
37998
38035
|
var toUnfoldable10 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
|
37999
38036
|
var union1 = /* @__PURE__ */ (() => setSet(ordString).union)();
|
38000
38037
|
var fv = /* @__PURE__ */ (() => fVDict(fVElim).fv)();
|
38038
|
+
var pack8 = (x2) => (k) => k(showBaseVal)(x2);
|
38001
38039
|
var fromFoldable110 = /* @__PURE__ */ fromFoldable(foldableList);
|
38002
38040
|
var greaterThanOrEq = /* @__PURE__ */ (() => {
|
38003
38041
|
const $0 = ordTuple(ordInt)(ordInt);
|
@@ -38147,22 +38185,22 @@ var closeDefs = (dictMonadWithGraphAlloc) => {
|
|
38147
38185
|
const traverse2 = traversableDict.traverse(Monad0.Applicative0());
|
38148
38186
|
return (\u03B3) => (\u03C1) => (\u03B1s) => Functor0.map(Env)(traverse2((\u03C3) => {
|
38149
38187
|
const \u03C1$p = forDefs(\u03C1)(\u03C3);
|
38150
|
-
const
|
38188
|
+
const v = $BaseVal(
|
38151
38189
|
"Fun",
|
38152
38190
|
$Fun(
|
38153
38191
|
"Closure",
|
38154
38192
|
(() => {
|
38155
|
-
const $
|
38193
|
+
const $0 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
|
38156
38194
|
return filterWithKey((x2) => {
|
38157
|
-
const $1 = setSet(ordString).member(x2)($
|
38158
|
-
return (
|
38195
|
+
const $1 = setSet(ordString).member(x2)($0);
|
38196
|
+
return (v2) => $1;
|
38159
38197
|
})(\u03B3);
|
38160
38198
|
})(),
|
38161
38199
|
\u03C1$p,
|
38162
38200
|
\u03C3
|
38163
38201
|
)
|
38164
38202
|
);
|
38165
|
-
return Functor0.map((f) => f(
|
38203
|
+
return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)(pack8(v))));
|
38166
38204
|
})(\u03C1));
|
38167
38205
|
};
|
38168
38206
|
var $$eval = (dictMonadWithGraphAlloc) => {
|
@@ -38187,13 +38225,22 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
38187
38225
|
return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
|
38188
38226
|
}
|
38189
38227
|
if (v1.tag === "Int") {
|
38190
|
-
return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))
|
38228
|
+
return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8($BaseVal(
|
38229
|
+
"Int",
|
38230
|
+
v1._2
|
38231
|
+
)))));
|
38191
38232
|
}
|
38192
38233
|
if (v1.tag === "Float") {
|
38193
|
-
return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))
|
38234
|
+
return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8($BaseVal(
|
38235
|
+
"Float",
|
38236
|
+
v1._2
|
38237
|
+
)))));
|
38194
38238
|
}
|
38195
38239
|
if (v1.tag === "Str") {
|
38196
|
-
return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))
|
38240
|
+
return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8($BaseVal(
|
38241
|
+
"Str",
|
38242
|
+
v1._2
|
38243
|
+
)))));
|
38197
38244
|
}
|
38198
38245
|
if (v1.tag === "Dictionary") {
|
38199
38246
|
const $0 = v1._1;
|
@@ -38202,8 +38249,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
38202
38249
|
return (a) => $1(a)(v2);
|
38203
38250
|
})()))(v1._2)))((v3) => {
|
38204
38251
|
const v4 = unzip(listMap((v$1) => $Tuple(v$1._2.tag === "Str" ? v$1._2._1 : typeError(v$1._2)("Str"), v$1._1))(v3._1));
|
38205
|
-
const
|
38206
|
-
return Functor0.map((f) => f(
|
38252
|
+
const v5 = $BaseVal("Dictionary", fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
|
38253
|
+
return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(v2))(pack8(v5))));
|
38207
38254
|
});
|
38208
38255
|
}
|
38209
38256
|
if (v1.tag === "Constr") {
|
@@ -38233,7 +38280,11 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
38233
38280
|
})()))(() => Bind1.bind(traverse2((() => {
|
38234
38281
|
const $3 = $$eval(dictMonadWithGraphAlloc)(v);
|
38235
38282
|
return (a) => $3(a)(v2);
|
38236
|
-
})())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(v2))
|
38283
|
+
})())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(v2))(pack8($BaseVal(
|
38284
|
+
"Constr",
|
38285
|
+
$0,
|
38286
|
+
vs
|
38287
|
+
)))))));
|
38237
38288
|
}
|
38238
38289
|
if (v1.tag === "Matrix") {
|
38239
38290
|
const $0 = v1._2;
|
@@ -38261,18 +38312,21 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
38261
38312
|
return $8;
|
38262
38313
|
})())))($0)(v2)
|
38263
38314
|
]))
|
38264
|
-
])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(v2))
|
38315
|
+
])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(v2))(pack8($BaseVal(
|
38316
|
+
"Matrix",
|
38317
|
+
$Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7)))
|
38318
|
+
)))))));
|
38265
38319
|
});
|
38266
38320
|
}
|
38267
38321
|
if (v1.tag === "Lambda") {
|
38268
|
-
const
|
38322
|
+
const v3 = $BaseVal(
|
38269
38323
|
"Fun",
|
38270
38324
|
$Fun(
|
38271
38325
|
"Closure",
|
38272
38326
|
(() => {
|
38273
|
-
const $
|
38327
|
+
const $0 = fVElim.fv(v1._2);
|
38274
38328
|
return filterWithKey((x2) => {
|
38275
|
-
const $1 = setSet(ordString).member(x2)($
|
38329
|
+
const $1 = setSet(ordString).member(x2)($0);
|
38276
38330
|
return (v$1) => $1;
|
38277
38331
|
})(v);
|
38278
38332
|
})(),
|
@@ -38280,7 +38334,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
38280
38334
|
v1._2
|
38281
38335
|
)
|
38282
38336
|
);
|
38283
|
-
return Functor0.map((f) => f(
|
38337
|
+
return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8(v3))));
|
38284
38338
|
}
|
38285
38339
|
if (v1.tag === "Project") {
|
38286
38340
|
const $0 = v1._2;
|
@@ -38379,7 +38433,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
|
|
38379
38433
|
v._1,
|
38380
38434
|
void 0,
|
38381
38435
|
Leaf2
|
38382
|
-
))));
|
38436
|
+
))(pack8($BaseVal("Fun", $Fun("Foreign", $Tuple($1, $2), vs$p))))));
|
38383
38437
|
}
|
38384
38438
|
return $2._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
|
38385
38439
|
}
|
@@ -38430,26 +38484,26 @@ var apply2 = (dictMonadWithGraphAlloc) => {
|
|
38430
38484
|
};
|
38431
38485
|
return go(0)($2) < (n - 1 | 0);
|
38432
38486
|
})()) {
|
38433
|
-
const $
|
38487
|
+
const v$p2 = $BaseVal(
|
38434
38488
|
"Fun",
|
38435
38489
|
$Fun("PartialConstr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2))
|
38436
38490
|
);
|
38437
|
-
return Functor0.map((f) => f($
|
38491
|
+
return Functor0.map((f) => f(v$p2))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
|
38438
38492
|
"Two",
|
38439
38493
|
Leaf2,
|
38440
38494
|
$3,
|
38441
38495
|
void 0,
|
38442
38496
|
Leaf2
|
38443
|
-
))));
|
38497
|
+
))(pack8(v$p2))));
|
38444
38498
|
}
|
38445
|
-
const $
|
38446
|
-
return Functor0.map((f) => f($
|
38499
|
+
const v$p = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
|
38500
|
+
return Functor0.map((f) => f(v$p))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
|
38447
38501
|
"Two",
|
38448
38502
|
Leaf2,
|
38449
38503
|
$3,
|
38450
38504
|
void 0,
|
38451
38505
|
Leaf2
|
38452
|
-
))));
|
38506
|
+
))(pack8(v$p))));
|
38453
38507
|
});
|
38454
38508
|
}
|
38455
38509
|
}
|
@@ -42864,6 +42918,7 @@ var apply2Bwd = (dictAnn) => {
|
|
42864
42918
|
};
|
42865
42919
|
|
42866
42920
|
// output-es/Primitive.Defs/index.js
|
42921
|
+
var pack9 = (x2) => (k) => k(showBaseVal)(x2);
|
42867
42922
|
var erase = /* @__PURE__ */ (() => functorVal.map((v) => {
|
42868
42923
|
}))();
|
42869
42924
|
var unzip6 = /* @__PURE__ */ unzip3(functorDict);
|
@@ -42873,11 +42928,24 @@ var foldWithIndexM = (dictMonad) => (f) => (a0) => foldableWithIndexStringDi.fol
|
|
42873
42928
|
return (a) => $0(a)(b);
|
42874
42929
|
})()))(dictMonad.Applicative0().pure(a0));
|
42875
42930
|
var disjointUnion5 = /* @__PURE__ */ disjointUnion(mapDictString);
|
42876
|
-
var unary2 = /* @__PURE__ */ unary(boundedJoinSemilatticeUni);
|
42877
|
-
var
|
42878
|
-
|
42879
|
-
|
42880
|
-
|
42931
|
+
var unary2 = /* @__PURE__ */ unary(showInt)(boundedJoinSemilatticeUni);
|
42932
|
+
var showEither = {
|
42933
|
+
show: (v) => {
|
42934
|
+
if (v.tag === "Left") {
|
42935
|
+
return "(Left " + showIntImpl(v._1) + ")";
|
42936
|
+
}
|
42937
|
+
if (v.tag === "Right") {
|
42938
|
+
return "(Right " + showNumberImpl(v._1) + ")";
|
42939
|
+
}
|
42940
|
+
fail();
|
42941
|
+
}
|
42942
|
+
};
|
42943
|
+
var binary2 = /* @__PURE__ */ binary(showEither)(boundedJoinSemilatticeUni);
|
42944
|
+
var binaryZero2 = /* @__PURE__ */ (() => binaryZero(showEither)(boundedJoinSemilatticeUni)({
|
42945
|
+
isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero)
|
42946
|
+
}))();
|
42947
|
+
var binary1 = /* @__PURE__ */ binary(showBoolean)(boundedJoinSemilatticeUni);
|
42948
|
+
var binaryZero1 = /* @__PURE__ */ binaryZero(showInt)(boundedJoinSemilatticeUni)(isZeroInt);
|
42881
42949
|
var pow3 = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => pow(toNumber(x2))(toNumber(y2)))(pow);
|
42882
42950
|
var numToStr = (v2) => {
|
42883
42951
|
if (v2.tag === "Left") {
|
@@ -42899,14 +42967,14 @@ var matrixUpdate = /* @__PURE__ */ $Tuple(
|
|
42899
42967
|
return (v) => {
|
42900
42968
|
if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Cons" && v._2._1._2.tag === "Constr" && v._2._1._2._2.tag === "Cons" && v._2._1._2._2._1._2.tag === "Int" && v._2._1._2._2._2.tag === "Cons" && v._2._1._2._2._2._1._2.tag === "Int" && v._2._1._2._2._2._2.tag === "Nil" && v._2._2.tag === "Cons" && v._2._2._2.tag === "Nil" && v._2._1._2._1 === "Pair") {
|
42901
42969
|
const $0 = v._2._2._1;
|
42902
|
-
const $
|
42903
|
-
return Functor0.map((f) => f($
|
42970
|
+
const v$p = $BaseVal("Matrix", matrixPut(v._2._1._2._2._1._2._1)(v._2._1._2._2._2._1._2._1)((v$1) => $0)(v._1._2._1));
|
42971
|
+
return Functor0.map((f) => f(v$p))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
|
42904
42972
|
"Two",
|
42905
42973
|
Leaf2,
|
42906
42974
|
v._1._1,
|
42907
42975
|
void 0,
|
42908
42976
|
Leaf2
|
42909
|
-
))));
|
42977
|
+
))(pack9(v$p))));
|
42910
42978
|
}
|
42911
42979
|
return MonadThrow0.throwError(error("Matrix, pair of integers and value expected"));
|
42912
42980
|
};
|
@@ -43088,28 +43156,31 @@ var dims = /* @__PURE__ */ $Tuple(
|
|
43088
43156
|
const Functor0 = Bind1.Apply0().Functor0();
|
43089
43157
|
return (v) => {
|
43090
43158
|
if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
|
43091
|
-
const $0 = v._1._2._1._2.
|
43092
|
-
const $1 = v._1._1;
|
43093
|
-
const $2 = v._1.
|
43094
|
-
|
43159
|
+
const $0 = v._1._2._1._2._1._1;
|
43160
|
+
const $1 = v._1._2._1._2._2._1;
|
43161
|
+
const $2 = v._1._1;
|
43162
|
+
const $3 = v._1._2._1._2._2._2;
|
43163
|
+
return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
|
43095
43164
|
"Two",
|
43096
43165
|
Leaf2,
|
43097
43166
|
v._1._2._1._2._1._2,
|
43098
43167
|
void 0,
|
43099
43168
|
Leaf2
|
43100
|
-
)))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $
|
43169
|
+
))(pack9($BaseVal("Int", $0))))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
|
43101
43170
|
"Two",
|
43102
43171
|
Leaf2,
|
43103
|
-
$
|
43104
|
-
void 0,
|
43105
|
-
Leaf2
|
43106
|
-
)))))((v2) => Functor0.map((f) => f($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil)))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
|
43107
|
-
"Two",
|
43108
|
-
Leaf2,
|
43109
|
-
$1,
|
43172
|
+
$3,
|
43110
43173
|
void 0,
|
43111
43174
|
Leaf2
|
43112
|
-
))))))
|
43175
|
+
))(pack9($BaseVal("Int", $1))))))((v2) => Functor0.map((f) => f($BaseVal(
|
43176
|
+
"Constr",
|
43177
|
+
"Pair",
|
43178
|
+
$List("Cons", v1, $List("Cons", v2, Nil))
|
43179
|
+
)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map("Two", Leaf2, $2, void 0, Leaf2))(pack9($BaseVal(
|
43180
|
+
"Constr",
|
43181
|
+
"Pair",
|
43182
|
+
$List("Cons", v1, $List("Cons", v2, Nil))
|
43183
|
+
)))))));
|
43113
43184
|
}
|
43114
43185
|
return MonadThrow0.throwError(error("Matrix expected"));
|
43115
43186
|
};
|
@@ -43189,7 +43260,7 @@ var dict_map = /* @__PURE__ */ $Tuple(
|
|
43189
43260
|
$1,
|
43190
43261
|
void 0,
|
43191
43262
|
Leaf2
|
43192
|
-
)))));
|
43263
|
+
))(pack9($BaseVal("Dictionary", d$p))))));
|
43193
43264
|
}
|
43194
43265
|
return MonadThrow0.throwError(error("Function and dictionary expected"));
|
43195
43266
|
};
|
@@ -43254,27 +43325,31 @@ var dict_intersectionWith = /* @__PURE__ */ $Tuple(
|
|
43254
43325
|
const Bind1 = Monad0.Bind1();
|
43255
43326
|
const Apply0 = Bind1.Apply0();
|
43256
43327
|
const $0 = Apply0.Functor0();
|
43257
|
-
const
|
43328
|
+
const Applicative0 = Monad0.Applicative0();
|
43258
43329
|
return (v) => {
|
43259
43330
|
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Cons" && v._2._2._1._2.tag === "Dictionary" && v._2._2._2.tag === "Nil") {
|
43260
43331
|
const $1 = v._1;
|
43261
|
-
|
43262
|
-
|
43263
|
-
|
43264
|
-
|
43265
|
-
|
43266
|
-
|
43267
|
-
|
43268
|
-
const $2 = v2._2;
|
43269
|
-
const $3 = v3._2;
|
43270
|
-
return Bind1.bind(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v3._1)()($$$Map(
|
43332
|
+
const $2 = v._2._1._1;
|
43333
|
+
const $3 = v._2._2._1._1;
|
43334
|
+
const v$p = $0.map(Dictionary3)($0.map(DictRep)(traversableDict.traverse(Applicative0)(identity19)(intersectionWith_Object((v2) => (v3) => {
|
43335
|
+
const $4 = v3._2;
|
43336
|
+
const $5 = v2._1;
|
43337
|
+
const $6 = v3._1;
|
43338
|
+
return Bind1.bind(Bind1.bind(apply4($1)(v2._2))((a) => apply4(a)($4)))((v4) => Bind1.bind(dictMonadWithGraphAlloc.new(insert3(ordVertex)($6)()($$$Map(
|
43271
43339
|
"Two",
|
43272
43340
|
Leaf2,
|
43273
|
-
|
43341
|
+
$5,
|
43274
43342
|
void 0,
|
43275
43343
|
Leaf2
|
43276
|
-
))))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(
|
43277
|
-
})(v._2._1._2._1)(v._2._2._1._2._1))))
|
43344
|
+
)))(pack9(v4._2)))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Applicative0.pure(v4))));
|
43345
|
+
})(v._2._1._2._1)(v._2._2._1._2._1))));
|
43346
|
+
return Bind1.bind(v$p)((packable) => Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()($$$Map(
|
43347
|
+
"Two",
|
43348
|
+
Leaf2,
|
43349
|
+
$2,
|
43350
|
+
void 0,
|
43351
|
+
Leaf2
|
43352
|
+
)))(pack9(packable))))(v$p));
|
43278
43353
|
}
|
43279
43354
|
return MonadThrow0.throwError(error("Function and two dictionaries expected"));
|
43280
43355
|
};
|
@@ -43507,14 +43582,14 @@ var dict_disjointUnion = /* @__PURE__ */ $Tuple(
|
|
43507
43582
|
const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
|
43508
43583
|
return (v) => {
|
43509
43584
|
if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
|
43510
|
-
const
|
43511
|
-
return Functor0.map((f) => f(
|
43585
|
+
const v1 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
|
43586
|
+
return Functor0.map((f) => f(v1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
|
43512
43587
|
"Two",
|
43513
43588
|
Leaf2,
|
43514
43589
|
v._1._1,
|
43515
43590
|
void 0,
|
43516
43591
|
Leaf2
|
43517
|
-
)))));
|
43592
|
+
)))(pack9(v1))));
|
43518
43593
|
}
|
43519
43594
|
return MonadThrow0.throwError(error("Dictionaries expected"));
|
43520
43595
|
};
|
@@ -43555,14 +43630,14 @@ var dict_difference = /* @__PURE__ */ $Tuple(
|
|
43555
43630
|
const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
|
43556
43631
|
return (v) => {
|
43557
43632
|
if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
|
43558
|
-
const
|
43559
|
-
return Functor0.map((f) => f(
|
43633
|
+
const v1 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
|
43634
|
+
return Functor0.map((f) => f(v1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
|
43560
43635
|
"Two",
|
43561
43636
|
Leaf2,
|
43562
43637
|
v._1._1,
|
43563
43638
|
void 0,
|
43564
43639
|
Leaf2
|
43565
|
-
)))));
|
43640
|
+
)))(pack9(v1))));
|
43566
43641
|
}
|
43567
43642
|
return MonadThrow0.throwError(error("Dictionaries expected."));
|
43568
43643
|
};
|
@@ -43631,8 +43706,8 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
|
|
43631
43706
|
/* @__PURE__ */ extern1(dims),
|
43632
43707
|
/* @__PURE__ */ extern1(error_),
|
43633
43708
|
/* @__PURE__ */ unary2("floor")({ i: number5, o: $$int, fwd: floor2 }),
|
43634
|
-
/* @__PURE__ */
|
43635
|
-
/* @__PURE__ */
|
43709
|
+
/* @__PURE__ */ unary(showNumber)(boundedJoinSemilatticeUni)("log")({ i: intOrNumber, o: number5, fwd: log3 }),
|
43710
|
+
/* @__PURE__ */ unary(showString)(boundedJoinSemilatticeUni)("numToStr")({ i: intOrNumber, o: string2, fwd: numToStr }),
|
43636
43711
|
/* @__PURE__ */ binary2("+")({
|
43637
43712
|
i1: intOrNumber,
|
43638
43713
|
i2: intOrNumber,
|
@@ -43645,25 +43720,30 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
|
|
43645
43720
|
o: intOrNumber,
|
43646
43721
|
fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
|
43647
43722
|
}),
|
43648
|
-
/* @__PURE__ */
|
43723
|
+
/* @__PURE__ */ binaryZero2("*")({
|
43649
43724
|
i: intOrNumber,
|
43650
43725
|
o: intOrNumber,
|
43651
43726
|
fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
|
43652
43727
|
}),
|
43653
|
-
/* @__PURE__ */
|
43654
|
-
/* @__PURE__ */
|
43655
|
-
/* @__PURE__ */
|
43728
|
+
/* @__PURE__ */ binaryZero2("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
|
43729
|
+
/* @__PURE__ */ binaryZero2("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
|
43730
|
+
/* @__PURE__ */ binary1("==")({
|
43656
43731
|
i1: intOrNumberOrString,
|
43657
43732
|
i2: intOrNumberOrString,
|
43658
43733
|
o: $$boolean,
|
43659
43734
|
fwd: /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
|
43660
43735
|
}),
|
43661
|
-
/* @__PURE__ */
|
43662
|
-
/* @__PURE__ */
|
43663
|
-
/* @__PURE__ */
|
43664
|
-
/* @__PURE__ */
|
43665
|
-
/* @__PURE__ */
|
43666
|
-
/* @__PURE__ */
|
43736
|
+
/* @__PURE__ */ binary1("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
|
43737
|
+
/* @__PURE__ */ binary1("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
|
43738
|
+
/* @__PURE__ */ binary1(">")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThan }),
|
43739
|
+
/* @__PURE__ */ binary1("<=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThanEquals }),
|
43740
|
+
/* @__PURE__ */ binary1(">=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: greaterThanEquals }),
|
43741
|
+
/* @__PURE__ */ binary(showString)(boundedJoinSemilatticeUni)("++")({
|
43742
|
+
i1: string2,
|
43743
|
+
i2: string2,
|
43744
|
+
o: string2,
|
43745
|
+
fwd: concatString
|
43746
|
+
}),
|
43667
43747
|
/* @__PURE__ */ extern1(matrixLookup),
|
43668
43748
|
/* @__PURE__ */ extern1(dict_difference),
|
43669
43749
|
/* @__PURE__ */ extern1(dict_disjointUnion),
|
@@ -43672,10 +43752,10 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
|
|
43672
43752
|
/* @__PURE__ */ extern1(dict_intersectionWith),
|
43673
43753
|
/* @__PURE__ */ extern1(dict_map),
|
43674
43754
|
/* @__PURE__ */ extern1(matrixUpdate),
|
43675
|
-
/* @__PURE__ */
|
43676
|
-
/* @__PURE__ */
|
43677
|
-
/* @__PURE__ */
|
43678
|
-
/* @__PURE__ */
|
43755
|
+
/* @__PURE__ */ binaryZero1("div")({ i: $$int, o: $$int, fwd: intDiv2 }),
|
43756
|
+
/* @__PURE__ */ binaryZero1("mod")({ i: $$int, o: $$int, fwd: intMod }),
|
43757
|
+
/* @__PURE__ */ binaryZero1("quot")({ i: $$int, o: $$int, fwd: quot }),
|
43758
|
+
/* @__PURE__ */ binaryZero1("rem")({ i: $$int, o: $$int, fwd: rem })
|
43679
43759
|
]);
|
43680
43760
|
|
43681
43761
|
// output-es/ProgCxt/index.js
|