diff --git a/async.js b/async.js index 1205b00..6c9ef2c 100644 --- a/async.js +++ b/async.js @@ -1,5 +1,6 @@ function Async() { return { + apply: apply, bind: bind, parallel: parallel, run: run, @@ -8,6 +9,12 @@ function Async() { wrap: wrap }; + function apply(f, x) { + return function(g) { + g(f(x)); + }; + } + function bind(m, f) { return function(g) { m(function(x) {