Currying is transforming a function of arbitrary arity into a composition of 1-ary functions.
Partial application is producing a function of reduced arity by binding fixed values to some of the original function’s arguments.
While connect does return a 1-ary function that accepts a component and returns a wrapper component, the initial connect() call accepts up to 4 arguments - not just exactly one argument as it is the case with currying.
From that perspective in looks more like partial application of an imaginary
Very nicely explained in dept. Great !!, this blog was more intended to understand the underline concept behind connect() function and you made it better by explaining the working procedure in dept. Kudos to you.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nitpick: connect
Currying versus partial application (with JavaScript code)
While
connect
does return a 1-ary function that accepts a component and returns a wrapper component, the initialconnect()
call accepts up to 4 arguments - not just exactly one argument as it is the case with currying.From that perspective in looks more like partial application of an imaginary
function i.e.
rather than curried
Also
Very nicely explained in dept. Great !!, this blog was more intended to understand the underline concept behind connect() function and you made it better by explaining the working procedure in dept. Kudos to you.