Last active
June 13, 2016 17:55
-
-
Save b2whats/cbbbf2515af946c8fb355c54cdeb36fe to your computer and use it in GitHub Desktop.
pipeline
This file contains 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 pipeline = [ | |
array => { array.pop(); return array; }, | |
array => array.reverse() | |
]; | |
pipeline.reduce((xs, f) => f(xs), [1, 2, 3]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment