UNPKG

1.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 index_1 = require("./index");
7__export(require("./index"));
8var flOf = "fantasy-land/of";
9var flEmpty = "fantasy-land/empty";
10index_1.List.prototype["fantasy-land/equals"] = function (l) {
11 return index_1.equals(this, l);
12};
13index_1.List.prototype["fantasy-land/map"] = function (f) {
14 return index_1.map(f, this);
15};
16index_1.List.prototype[flOf] = index_1.of;
17index_1.List[flOf] = index_1.List.prototype[flOf];
18index_1.List.prototype["fantasy-land/ap"] = function (listF) {
19 return index_1.ap(listF, this);
20};
21index_1.List.prototype["fantasy-land/chain"] = function (f) {
22 return index_1.chain(f, this);
23};
24index_1.List.prototype["fantasy-land/filter"] = function (predicate) {
25 return index_1.filter(predicate, this);
26};
27index_1.List.prototype[flEmpty] = function () {
28 return index_1.empty();
29};
30index_1.List[flEmpty] = index_1.List.prototype[flEmpty];
31index_1.List.prototype["fantasy-land/concat"] = function (right) {
32 return index_1.concat(this, right);
33};
34index_1.List.prototype["fantasy-land/reduce"] = function (f, initial) {
35 return index_1.foldl(f, initial, this);
36};
37//# sourceMappingURL=fantasy-land.js.map
\No newline at end of file