We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 824fc9a commit 05c243fCopy full SHA for 05c243f
JavaScript/5-functor-ap.js
@@ -14,7 +14,7 @@ Maybe.prototype.ap = function(maybe) {
14
))));
15
};
16
17
-let a = new Maybe(5);
18
-let f1 = new Maybe(x => x * 2);
19
-let f2 = new Maybe(x => ++x);
+const a = new Maybe(5);
+const f1 = new Maybe(x => x * 2);
+const f2 = new Maybe(x => ++x);
20
a.ap(f1).ap(f2).map(console.log);
0 commit comments