Created
November 7, 2015 21:30
-
-
Save dtipson/58b8467dcfd3f41d8458 to your computer and use it in GitHub Desktop.
ES2015 version of program
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
| const program = (...list) => acc => list.reduce( (acc,fn) => acc.then(fn), Promise.resolve(acc)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment