Clear and Concise. Such a great article.

Although i get the difference between currying and partial application but i don’t quite understand the difference between in uses such as composition.
The functions in composition pipeline expect a unary data flow. but we can create that using partial application too. using the data last concept.

const getUserAddress = compose(
either('User does not exist', prop('address')),

where either is partially applied the failure message and the success function to retrieve address string. and the last value it expects is ‘data’ of user. so why curry ?

I’m a full stack web developer working with Javascript on React and Node.js everyday.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store