UNPKG

4.36 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", { value: true });
4var L = /*#__PURE__*/require("./index");
5var index_1 = /*#__PURE__*/require("./index");
6exports.Node = index_1.Node;
7exports.List = index_1.List;
8exports.list = index_1.list;
9exports.isList = index_1.isList;
10exports.length = index_1.length;
11exports.of = index_1.of;
12exports.empty = index_1.empty;
13exports.first = index_1.first;
14exports.last = index_1.last;
15exports.flatten = index_1.flatten;
16exports.pop = index_1.pop;
17exports.init = index_1.init;
18exports.tail = index_1.tail;
19exports.from = index_1.from;
20exports.toArray = index_1.toArray;
21exports.reverse = index_1.reverse;
22exports.sort = index_1.sort;
23exports.group = index_1.group;
24exports.dropRepeats = index_1.dropRepeats;
25exports.isEmpty = index_1.isEmpty;
26function curry2(f) {
27 return function curried(a, b) {
28 return arguments.length === 2 ? f(a, b) : function (b) {
29 return f(a, b);
30 };
31 };
32}
33function curry3(f) {
34 return function curried(a, b, c) {
35 switch (arguments.length) {
36 case 3:
37 return f(a, b, c);
38 case 2:
39 return function (c) {
40 return f(a, b, c);
41 };
42 default:
43 return curry2(function (b, c) {
44 return f(a, b, c);
45 });
46 }
47 };
48}
49exports.prepend = /*#__PURE__*/curry2(L.prepend);
50exports.append = /*#__PURE__*/curry2(L.append);
51exports.pair = /*#__PURE__*/curry2(L.pair);
52exports.repeat = /*#__PURE__*/curry2(L.repeat);
53exports.times = /*#__PURE__*/curry2(L.times);
54exports.nth = /*#__PURE__*/curry2(L.nth);
55exports.map = /*#__PURE__*/curry2(L.map);
56exports.forEach = /*#__PURE__*/curry2(L.forEach);
57exports.pluck = /*#__PURE__*/curry2(L.pluck);
58exports.intersperse = /*#__PURE__*/curry2(L.intersperse);
59exports.range = /*#__PURE__*/curry2(L.range);
60exports.filter = /*#__PURE__*/curry2(L.filter);
61exports.reject = /*#__PURE__*/curry2(L.reject);
62exports.partition = /*#__PURE__*/curry2(L.partition);
63exports.join = /*#__PURE__*/curry2(L.join);
64exports.ap = /*#__PURE__*/curry2(L.ap);
65exports.flatMap = /*#__PURE__*/curry2(L.flatMap);
66exports.chain = exports.flatMap;
67exports.every = /*#__PURE__*/curry2(L.every);
68exports.all = /*#__PURE__*/curry2(L.all);
69exports.some = /*#__PURE__*/curry2(L.some);
70exports.any = /*#__PURE__*/curry2(L.any);
71exports.none = /*#__PURE__*/curry2(L.none);
72exports.find = /*#__PURE__*/curry2(L.find);
73exports.findLast = /*#__PURE__*/curry2(L.findLast);
74exports.indexOf = /*#__PURE__*/curry2(L.indexOf);
75exports.lastIndexOf = /*#__PURE__*/curry2(L.lastIndexOf);
76exports.findIndex = /*#__PURE__*/curry2(L.findIndex);
77exports.includes = /*#__PURE__*/curry2(L.includes);
78exports.contains = exports.includes;
79exports.equals = /*#__PURE__*/curry2(L.equals);
80exports.concat = /*#__PURE__*/curry2(L.concat);
81exports.take = /*#__PURE__*/curry2(L.take);
82exports.takeLast = /*#__PURE__*/curry2(L.takeLast);
83exports.drop = /*#__PURE__*/curry2(L.drop);
84exports.dropRepeatsWith = /*#__PURE__*/curry2(L.groupWith);
85exports.dropLast = /*#__PURE__*/curry2(L.dropLast);
86exports.takeWhile = /*#__PURE__*/curry2(L.takeWhile);
87exports.takeLastWhile = /*#__PURE__*/curry2(L.takeLastWhile);
88exports.dropWhile = /*#__PURE__*/curry2(L.dropWhile);
89exports.splitAt = /*#__PURE__*/curry2(L.splitAt);
90exports.splitWhen = /*#__PURE__*/curry2(L.splitWhen);
91exports.splitEvery = /*#__PURE__*/curry2(L.splitEvery);
92exports.sortBy = /*#__PURE__*/curry2(L.sortBy);
93exports.sortWith = /*#__PURE__*/curry2(L.sortWith);
94exports.groupWith = /*#__PURE__*/curry2(L.groupWith);
95exports.zip = /*#__PURE__*/curry2(L.zip);
96exports.sequence = /*#__PURE__*/curry2(L.sequence);
97exports.foldl = /*#__PURE__*/curry3(L.foldl);
98exports.reduce = exports.foldl;
99exports.scan = /*#__PURE__*/curry3(L.scan);
100exports.foldr = /*#__PURE__*/curry3(L.foldr);
101exports.traverse = /*#__PURE__*/curry3(L.traverse);
102exports.equalsWith = /*#__PURE__*/curry3(L.equalsWith);
103exports.reduceRight = exports.foldr;
104exports.update = /*#__PURE__*/curry3(L.update);
105exports.adjust = /*#__PURE__*/curry3(L.adjust);
106exports.slice = /*#__PURE__*/curry3(L.slice);
107exports.remove = /*#__PURE__*/curry3(L.remove);
108exports.insert = /*#__PURE__*/curry3(L.insert);
109exports.insertAll = /*#__PURE__*/curry3(L.insertAll);
110exports.zipWith = /*#__PURE__*/curry3(L.zipWith);
\No newline at end of file