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