-
Notifications
You must be signed in to change notification settings - Fork 464
/
Copy pathImport.js
94 lines (74 loc) · 1.74 KB
/
Import.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var Curry = require("../../lib/js/curry.js");
async function eachIntAsync(list, f) {
return Curry._2(await import("../../lib/js/belt_List.js").then(function (m) {
return m.forEach;
}), list, f);
}
function eachIntLazy(list, f) {
var obj = import("../../lib/js/belt_List.js").then(function (m) {
return m.forEach;
});
var arg1 = function (each) {
return Promise.resolve(Curry._2(each, list, f));
};
return obj.then(arg1);
}
eachIntLazy({
hd: 1,
tl: {
hd: 2,
tl: {
hd: 3,
tl: /* [] */0
}
}
}, (function (n) {
console.log("lazy", n);
}));
eachIntAsync({
hd: 1,
tl: {
hd: 2,
tl: {
hd: 3,
tl: /* [] */0
}
}
}, (function (n) {
console.log("async", n);
}));
var beltAsModule = await import("../../lib/js/belt_List.js");
var M = await import("../../lib/js/belt_List.js");
var N0 = await import("../../lib/js/belt_List.js");
var O = await import("../../lib/js/belt_List.js");
var N1_each = O.forEach;
var N1 = {
O: O,
each: N1_each
};
var N2 = await import("../../lib/js/belt_List.js");
var N_each = N2.forEach;
var N = {
N0: N0,
N1: N1,
N2: N2,
each: N_each
};
var M0 = await import("../../lib/js/belt_List.js");
var M1 = await import("../../lib/js/belt_List.js");
var each = M1.forEach;
var M2;
var each2 = O.forEach;
exports.eachIntAsync = eachIntAsync;
exports.eachIntLazy = eachIntLazy;
exports.beltAsModule = beltAsModule;
exports.M = M;
exports.N = N;
exports.M0 = M0;
exports.M1 = M1;
exports.each = each;
exports.M2 = M2;
exports.each2 = each2;
/* Not a pure module */