forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipe_syntax.js
95 lines (80 loc) · 1.86 KB
/
pipe_syntax.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
95
'use strict';
var Curry = require("../../lib/js/curry.js");
var Caml_option = require("../../lib/js/caml_option.js");
function t0(x, f) {
return Curry._1(f, Curry._1(f, Curry._1(f, x)));
}
function t1(x, f) {
return Curry._1(f, x);
}
function t2(x, f, g) {
return Curry._2(f, Curry._3(g, Curry._1(f, x), x, x), x);
}
function t3(x, f) {
return Curry._3(f, x, 1, 2);
}
function f(a, b, c) {
return /* tuple */[
Curry._1(b, a),
Curry._1(c, a)
];
}
function f1(a, b, c, d) {
var __ocaml_internal_obj = Curry._1(a, b);
return /* tuple */[
Curry._1(c, __ocaml_internal_obj),
Curry._1(d, __ocaml_internal_obj)
];
}
function f2(a, b, c, d) {
var __ocaml_internal_obj = Curry._1(a, b);
var u = Curry._1(c, __ocaml_internal_obj);
var v = Curry._1(d, __ocaml_internal_obj);
return u + v | 0;
}
function f3(a, b, c, d, e) {
var __ocaml_internal_obj = Curry._1(a, b);
var u = Curry._2(c, __ocaml_internal_obj, d);
var v = Curry._3(d, __ocaml_internal_obj, 1, 2);
var h = Curry._1(e, __ocaml_internal_obj);
return (u + v | 0) + h | 0;
}
function f4(a, b, c) {
return /* tuple */[
Curry._2(b, a, c),
Curry._2(b, a, c)
];
}
function f5(a, b, c, d) {
var v0 = Curry._3(b, a, c, c);
var v1 = Curry._3(b, a, c, c);
var v2 = Curry._3(b, a, d, d);
return (v0 + v1 | 0) + v2 | 0;
}
function f6(a) {
return Caml_option.some(a);
}
function f7(a) {
return /* tuple */[
Caml_option.some(a),
Caml_option.some(a),
Caml_option.some(a)
];
}
function f8(a) {
return Caml_option.some(Caml_option.some(a));
}
exports.t0 = t0;
exports.t1 = t1;
exports.t2 = t2;
exports.t3 = t3;
exports.f = f;
exports.f1 = f1;
exports.f2 = f2;
exports.f3 = f3;
exports.f4 = f4;
exports.f5 = f5;
exports.f6 = f6;
exports.f7 = f7;
exports.f8 = f8;
/* No side effect */