Skip to content

Instantly share code, notes, and snippets.

@victorvoid

victorvoid/composability-example02.js Secret

Last active Aug 19, 2018
Embed
What would you like to do?
//Identity
const F = [1, 2, 3];
F.map(x => x); // [1, 2, 3]
//Composition
F.map(x => f(g(x))) /* -> */ F.map(g).map(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.