UNPKG

7.32 kBJavaScriptView Raw
1"use strict";
2function __export(m) {
3 for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4}
5Object.defineProperty(exports, "__esModule", { value: true });
6var fantasy_land_1 = require("./fantasy-land");
7var L = require("./fantasy-land");
8__export(require("./index"));
9fantasy_land_1.List.prototype.append = function (value) {
10 return L.append(value, this);
11};
12fantasy_land_1.List.prototype.intersperse = function (separator) {
13 return L.intersperse(separator, this);
14};
15fantasy_land_1.List.prototype.nth = function (index) {
16 return L.nth(index, this);
17};
18fantasy_land_1.List.prototype.empty = function () {
19 return L.empty();
20};
21fantasy_land_1.List.prototype.of = function (b) {
22 return L.of(b);
23};
24fantasy_land_1.List.prototype.prepend = function (value) {
25 return L.prepend(value, this);
26};
27fantasy_land_1.List.prototype.append = function (value) {
28 return L.append(value, this);
29};
30fantasy_land_1.List.prototype.first = function () {
31 return L.first(this);
32};
33fantasy_land_1.List.prototype.head = fantasy_land_1.List.prototype.first;
34fantasy_land_1.List.prototype.last = function () {
35 return L.last(this);
36};
37fantasy_land_1.List.prototype.map = function (f) {
38 return L.map(f, this);
39};
40fantasy_land_1.List.prototype.pluck = function (key) {
41 return L.pluck(key, this);
42};
43fantasy_land_1.List.prototype.foldl = function foldl(f, initial) {
44 return L.foldl(f, initial, this);
45};
46fantasy_land_1.List.prototype.reduce = fantasy_land_1.List.prototype.foldl;
47fantasy_land_1.List.prototype.scan = function scan(f, initial) {
48 return L.scan(f, initial, this);
49};
50fantasy_land_1.List.prototype.foldr = function (f, initial) {
51 return L.foldr(f, initial, this);
52};
53fantasy_land_1.List.prototype.reduceRight = fantasy_land_1.List.prototype.foldr;
54fantasy_land_1.List.prototype.foldlWhile = function foldlWhile(predicate, f, initial) {
55 return L.foldlWhile(predicate, f, initial, this);
56};
57fantasy_land_1.List.prototype.reduceWhile = fantasy_land_1.List.prototype.foldlWhile;
58fantasy_land_1.List.prototype.traverse = function (of, f) {
59 return L.traverse(of, f, this);
60};
61fantasy_land_1.List.prototype.sequence = function (of) {
62 return L.sequence(of, this);
63};
64fantasy_land_1.List.prototype.forEach = function (callback) {
65 return L.forEach(callback, this);
66};
67fantasy_land_1.List.prototype.filter = function (predicate) {
68 return L.filter(predicate, this);
69};
70fantasy_land_1.List.prototype.reject = function (predicate) {
71 return L.reject(predicate, this);
72};
73fantasy_land_1.List.prototype.partition = function (predicate) {
74 return L.partition(predicate, this);
75};
76fantasy_land_1.List.prototype.join = function (separator) {
77 return L.join(separator, this);
78};
79fantasy_land_1.List.prototype.ap = function (listF) {
80 return L.ap(listF, this);
81};
82fantasy_land_1.List.prototype.flatten = function () {
83 return L.flatten(this);
84};
85fantasy_land_1.List.prototype.flatMap = function (f) {
86 return L.flatMap(f, this);
87};
88fantasy_land_1.List.prototype.chain = fantasy_land_1.List.prototype.flatMap;
89fantasy_land_1.List.prototype.every = function (predicate) {
90 return L.every(predicate, this);
91};
92fantasy_land_1.List.prototype.some = function (predicate) {
93 return L.some(predicate, this);
94};
95fantasy_land_1.List.prototype.none = function (predicate) {
96 return L.none(predicate, this);
97};
98fantasy_land_1.List.prototype.indexOf = function (element) {
99 return L.indexOf(element, this);
100};
101fantasy_land_1.List.prototype.lastIndexOf = function (element) {
102 return L.lastIndexOf(element, this);
103};
104fantasy_land_1.List.prototype.find = function find(predicate) {
105 return L.find(predicate, this);
106};
107fantasy_land_1.List.prototype.findLast = function findLast(predicate) {
108 return L.findLast(predicate, this);
109};
110fantasy_land_1.List.prototype.findIndex = function (predicate) {
111 return L.findIndex(predicate, this);
112};
113fantasy_land_1.List.prototype.includes = function (element) {
114 return L.includes(element, this);
115};
116fantasy_land_1.List.prototype.equals = function (secondList) {
117 return L.equals(this, secondList);
118};
119fantasy_land_1.List.prototype.equalsWith = function (f, secondList) {
120 return L.equalsWith(f, this, secondList);
121};
122fantasy_land_1.List.prototype.concat = function (right) {
123 return L.concat(this, right);
124};
125fantasy_land_1.List.prototype.update = function (index, a) {
126 return L.update(index, a, this);
127};
128fantasy_land_1.List.prototype.adjust = function (index, f) {
129 return L.adjust(index, f, this);
130};
131fantasy_land_1.List.prototype.slice = function (from, to) {
132 return L.slice(from, to, this);
133};
134fantasy_land_1.List.prototype.take = function (n) {
135 return L.take(n, this);
136};
137fantasy_land_1.List.prototype.takeWhile = function (predicate) {
138 return L.takeWhile(predicate, this);
139};
140fantasy_land_1.List.prototype.takeLast = function (n) {
141 return L.takeLast(n, this);
142};
143fantasy_land_1.List.prototype.takeLastWhile = function (predicate) {
144 return L.takeLastWhile(predicate, this);
145};
146fantasy_land_1.List.prototype.splitAt = function (index) {
147 return L.splitAt(index, this);
148};
149fantasy_land_1.List.prototype.splitWhen = function (predicate) {
150 return L.splitWhen(predicate, this);
151};
152fantasy_land_1.List.prototype.splitEvery = function (size) {
153 return L.splitEvery(size, this);
154};
155fantasy_land_1.List.prototype.remove = function (from, amount) {
156 return L.remove(from, amount, this);
157};
158fantasy_land_1.List.prototype.drop = function (n) {
159 return L.drop(n, this);
160};
161fantasy_land_1.List.prototype.dropWhile = function (predicate) {
162 return L.dropWhile(predicate, this);
163};
164fantasy_land_1.List.prototype.dropRepeats = function () {
165 return L.dropRepeats(this);
166};
167fantasy_land_1.List.prototype.dropRepeatsWith = function (predicate) {
168 return L.dropRepeatsWith(predicate, this);
169};
170fantasy_land_1.List.prototype.dropLast = function (n) {
171 return L.dropLast(n, this);
172};
173fantasy_land_1.List.prototype.pop = function () {
174 return L.pop(this);
175};
176fantasy_land_1.List.prototype.tail = function () {
177 return L.tail(this);
178};
179fantasy_land_1.List.prototype.toArray = function () {
180 return L.toArray(this);
181};
182fantasy_land_1.List.prototype.insert = function (index, element) {
183 return L.insert(index, element, this);
184};
185fantasy_land_1.List.prototype.insertAll = function (index, elements) {
186 return L.insertAll(index, elements, this);
187};
188fantasy_land_1.List.prototype.reverse = function () {
189 return L.reverse(this);
190};
191fantasy_land_1.List.prototype.backwards = function () {
192 return L.backwards(this);
193};
194fantasy_land_1.List.prototype.zipWith = function (f, bs) {
195 return L.zipWith(f, this, bs);
196};
197fantasy_land_1.List.prototype.zip = function (bs) {
198 return L.zip(this, bs);
199};
200fantasy_land_1.List.prototype.sort = function () {
201 return L.sort(this);
202};
203fantasy_land_1.List.prototype.sortWith = function (comparator) {
204 return L.sortWith(comparator, this);
205};
206fantasy_land_1.List.prototype.sortBy = function (f) {
207 return L.sortBy(f, this);
208};
209fantasy_land_1.List.prototype.group = function () {
210 return L.group(this);
211};
212fantasy_land_1.List.prototype.groupWith = function (f) {
213 return L.groupWith(f, this);
214};
215fantasy_land_1.List.prototype.isEmpty = function () {
216 return L.isEmpty(this);
217};