Last active
December 14, 2015 00:43
-
-
Save bsalex/64f988e4526a9cd8ea65 to your computer and use it in GitHub Desktop.
Creates/Overrides object prop based on existing object props
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
R.converge( | |
R.assoc('x'), | |
[ | |
R.compose( | |
R.inc, R.prop('y') | |
), | |
R.identity | |
] | |
)({x:1, y:4}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment