1// @inline export mapU arity=1
2// @inline export filterMapU arity=1
3// @inline export filterU arity=1
4// @inline export fromArray arity=1
5// @inline export toArray arity=1
6// @inline export overArray arity=1
7import * as $runtime from "../runtime.js";
8import * as Data$dArray from "../Data.Array/index.js";
9import * as Data$dList$dTypes from "../Data.List.Types/index.js";
10import * as Data$dMaybe from "../Data.Maybe/index.js";
11import * as Data$dShow from "../Data.Show/index.js";
12import * as Data$dString$dCodeUnits from "../Data.String.CodeUnits/index.js";
13import * as Data$dTuple from "../Data.Tuple/index.js";
14import * as Data$dUnfoldable from "../Data.Unfoldable/index.js";
15const toUnfoldable = /* #__PURE__ */ (() => Data$dUnfoldable.unfoldableArray.unfoldr(xs => {
16 if (xs.tag === "Nil") { return Data$dMaybe.Nothing; }
17 if (xs.tag === "Cons") { return Data$dMaybe.$Maybe("Just", Data$dTuple.$Tuple(xs._1, xs._2)); }
21 const loop = loop$a0$copy => loop$a1$copy => {
22 let loop$a0 = loop$a0$copy, loop$a1 = loop$a1$copy, loop$c = true, loop$r;
24 const s2 = loop$a0, acc = loop$a1;
25 const loop$1 = loop$1$a0$copy => {
26 let loop$1$a0 = loop$1$a0$copy, loop$1$c = true, loop$1$r;
29 const loop$2 = loop$2$a0$copy => {
30 let loop$2$a0 = loop$2$a0$copy, loop$2$c = true, loop$2$r;
32 const s3$1 = loop$2$a0;
33 if (s3$1 === x.length) {
34 loop$c = loop$1$c = loop$2$c = false;
35 loop$r = Data$dArray.reverse(toUnfoldable(acc));
38 const $0 = s3$1 + 1 | 0;
39 const v1 = Data$dString$dCodeUnits.stripPrefix("1")(Data$dShow.showIntImpl(1 + x[s3$1] | 0));
40 if (v1.tag === "Nothing") {
44 if (v1.tag === "Just") {
45 const $1 = "2" + v1._1;
47 loop$1$c = loop$2$c = false;
49 loop$a1 = Data$dList$dTypes.$List("Cons", $1 + "1", acc);
68 return loop(0)(Data$dList$dTypes.Nil);
70export {test, toUnfoldable};
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list