Skip to content

Instantly share code, notes, and snippets.

@TrevorBasinger
Created April 23, 2015 03:10
Show Gist options
  • Save TrevorBasinger/4f76f78f4bf3adc68f68 to your computer and use it in GitHub Desktop.
Save TrevorBasinger/4f76f78f4bf3adc68f68 to your computer and use it in GitHub Desktop.
var R = require ('ramda'),
Future = require ('data.task'),
log = console.log,
add = R.curry (function (a, b) {
return a + b;
}),
nil = null;
(function main () {
var futureAdd = Future.of (add).ap (1).ap (2);
futureAdd.fork (log, log);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment