diff --git a/src/io.js b/src/io.js index 3e94df5..87dc115 100644 --- a/src/io.js +++ b/src/io.js @@ -19,7 +19,7 @@ IO.prototype[map] = function(f) { }; IO.prototype[ap] = function(a) { - return this[chain]((f) => a[map](f)); + return a[chain]((f) => this[map](f)); }; module.exports = IO; \ No newline at end of file