Skip to content

Instantly share code, notes, and snippets.

@jamsesso
Last active July 10, 2016 16:30
Show Gist options
  • Save jamsesso/4a4fba6a9119493ec840baabf1a47d41 to your computer and use it in GitHub Desktop.
Save jamsesso/4a4fba6a9119493ec840baabf1a47d41 to your computer and use it in GitHub Desktop.
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