Last active
November 21, 2016 21:23
-
-
Save dengjonathan/805961e78b8a2a190023ee5dd02d5783 to your computer and use it in GitHub Desktop.
ramda curry
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
//Ramda | |
const R = require('ramda'); | |
//this is the same as | |
const makeRen = obj => giveHero( | |
'Darth Vader', | |
giveName('Kylo', obj) | |
); | |
// this | |
const makeRenCurry = R.compose(giveHero('Darth Vader', giveName('Kylo')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment