Last active
July 10, 2016 16:30
-
-
Save jamsesso/4a4fba6a9119493ec840baabf1a47d41 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
import thread from './thread' | |
const addOne = x => x + 1; | |
const double = x => x * 2; | |
console.log(thread(10, double, addOne)) | |
// -> 21 (same as addOne(double(10))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment