I am looking for a name for the following function:
(f, a) => () => f(a)
Basically a function that returns a function that, when called, calls fwith a.
Is there a common name for this function? maybe this can be described using ramda magic?
Edit to clarify:
What I'm looking for looks like a partial part of Ramda,
partial(f, [a])
Also, that partial is more like:
(f, a) => (b) => f(a, b)
Ie bin case partialundesirable.
source
share