UNPKG

5.35 kBJavaScriptView Raw
1"use strict";
2/* istanbul ignore file */
3function __export(m) {
4 for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5}
6Object.defineProperty(exports, "__esModule", { value: true });
7var fantasy_land_1 = require("./fantasy-land");
8var L = require("./fantasy-land");
9__export(require("./index"));
10fantasy_land_1.List.prototype.append = function (value) {
11 return L.append(value, this);
12};
13fantasy_land_1.List.prototype.nth = function (index) {
14 return L.nth(index, this);
15};
16fantasy_land_1.List.prototype.empty = function () {
17 return L.empty();
18};
19fantasy_land_1.List.prototype.of = function (b) {
20 return L.of(b);
21};
22fantasy_land_1.List.prototype.prepend = function (value) {
23 return L.prepend(value, this);
24};
25fantasy_land_1.List.prototype.append = function (value) {
26 return L.append(value, this);
27};
28fantasy_land_1.List.prototype.first = function () {
29 return L.first(this);
30};
31fantasy_land_1.List.prototype.last = function () {
32 return L.last(this);
33};
34fantasy_land_1.List.prototype.map = function (f) {
35 return L.map(f, this);
36};
37fantasy_land_1.List.prototype.pluck = function (key) {
38 return L.pluck(key, this);
39};
40fantasy_land_1.List.prototype.foldl = function foldl(f, initial) {
41 return L.foldl(f, initial, this);
42};
43fantasy_land_1.List.prototype.reduce = fantasy_land_1.List.prototype.foldl;
44fantasy_land_1.List.prototype.foldr = function (f, initial) {
45 return L.foldr(f, initial, this);
46};
47fantasy_land_1.List.prototype.reduceRight = fantasy_land_1.List.prototype.foldr;
48fantasy_land_1.List.prototype.forEach = function (callback) {
49 return L.forEach(callback, this);
50};
51fantasy_land_1.List.prototype.filter = function (predicate) {
52 return L.filter(predicate, this);
53};
54fantasy_land_1.List.prototype.reject = function (predicate) {
55 return L.reject(predicate, this);
56};
57fantasy_land_1.List.prototype.partition = function (predicate) {
58 return L.partition(predicate, this);
59};
60fantasy_land_1.List.prototype.join = function (separator) {
61 return L.join(separator, this);
62};
63fantasy_land_1.List.prototype.ap = function (listF) {
64 return L.ap(listF, this);
65};
66fantasy_land_1.List.prototype.flatten = function () {
67 return L.flatten(this);
68};
69fantasy_land_1.List.prototype.chain = function (f) {
70 return L.chain(f, this);
71};
72fantasy_land_1.List.prototype.every = function (predicate) {
73 return L.every(predicate, this);
74};
75fantasy_land_1.List.prototype.some = function (predicate) {
76 return L.some(predicate, this);
77};
78fantasy_land_1.List.prototype.none = function (predicate) {
79 return L.none(predicate, this);
80};
81fantasy_land_1.List.prototype.indexOf = function (element) {
82 return L.indexOf(element, this);
83};
84fantasy_land_1.List.prototype.find = function find(predicate) {
85 return L.find(predicate, this);
86};
87fantasy_land_1.List.prototype.findIndex = function (predicate) {
88 return L.findIndex(predicate, this);
89};
90fantasy_land_1.List.prototype.includes = function (element) {
91 return L.includes(element, this);
92};
93fantasy_land_1.List.prototype.equals = function (secondList) {
94 return L.equals(this, secondList);
95};
96fantasy_land_1.List.prototype.concat = function (right) {
97 return L.concat(this, right);
98};
99fantasy_land_1.List.prototype.update = function (index, a) {
100 return L.update(index, a, this);
101};
102fantasy_land_1.List.prototype.adjust = function (index, f) {
103 return L.adjust(index, f, this);
104};
105fantasy_land_1.List.prototype.slice = function (from, to) {
106 return L.slice(from, to, this);
107};
108fantasy_land_1.List.prototype.take = function (n) {
109 return L.take(n, this);
110};
111fantasy_land_1.List.prototype.takeWhile = function (predicate) {
112 return L.takeWhile(predicate, this);
113};
114fantasy_land_1.List.prototype.takeLast = function (n) {
115 return L.takeLast(n, this);
116};
117fantasy_land_1.List.prototype.splitAt = function (index) {
118 return L.splitAt(index, this);
119};
120fantasy_land_1.List.prototype.remove = function (from, amount) {
121 return L.remove(from, amount, this);
122};
123fantasy_land_1.List.prototype.drop = function (n) {
124 return L.drop(n, this);
125};
126fantasy_land_1.List.prototype.dropWhile = function (predicate) {
127 return L.dropWhile(predicate, this);
128};
129fantasy_land_1.List.prototype.dropLast = function (n) {
130 return L.dropLast(n, this);
131};
132fantasy_land_1.List.prototype.pop = function () {
133 return L.pop(this);
134};
135fantasy_land_1.List.prototype.tail = function () {
136 return L.tail(this);
137};
138fantasy_land_1.List.prototype.toArray = function () {
139 return L.toArray(this);
140};
141fantasy_land_1.List.prototype.insert = function (index, element) {
142 return L.insert(index, element, this);
143};
144fantasy_land_1.List.prototype.insertAll = function (index, elements) {
145 return L.insertAll(index, elements, this);
146};
147fantasy_land_1.List.prototype.reverse = function () {
148 return L.reverse(this);
149};
150fantasy_land_1.List.prototype.zipWith = function (f, bs) {
151 return L.zipWith(f, this, bs);
152};
153fantasy_land_1.List.prototype.zip = function (bs) {
154 return L.zip(this, bs);
155};
156fantasy_land_1.List.prototype.sort = function () {
157 return L.sort(this);
158};
159fantasy_land_1.List.prototype.sortWith = function (comparator) {
160 return L.sortWith(comparator, this);
161};
162fantasy_land_1.List.prototype.sortBy = function (f) {
163 return L.sortBy(f, this);
164};
165//# sourceMappingURL=methods.js.map
\No newline at end of file