I am looking for a name for the following function:
(f, a) => () => f(a)
Basically a function that returns a function which when called calls f
with a
.
Is there a common name for this function? maybe it can be described with some Ramda magic?
Edit to clarify:
What I'm looking for is similar to Ramda's partial,
partial(f, [a])
Except that partial is more like:
(f, a) => (b) => f(a, b)
I.e the b
in the case of partial
is unwanted.