Created
April 23, 2015 03:10
-
-
Save TrevorBasinger/4f76f78f4bf3adc68f68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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