Skip to content

Instantly share code, notes, and snippets.

@cesardeazevedo
Created June 5, 2017 12:44
Show Gist options
  • Save cesardeazevedo/12a3c919e722eb1a4630ae3f908fcf3e to your computer and use it in GitHub Desktop.
Save cesardeazevedo/12a3c919e722eb1a4630ae3f908fcf3e to your computer and use it in GitHub Desktop.
Compose Factory with Ramda
const compose = (...args) => (...factoryArgs) => {
return R.reduce((acc, f) => R.merge(f(...factoryArgs), acc), {}, args)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment