Prompt
Two functional-programming staples:
curry(fn)— collects arguments across calls (f(1)(2),f(1, 2),f(1)(2, 3)all work) and invokesfnonce it hasfn.lengthof themcompose(...fns)— right-to-left composition:compose(f, g)(x) === f(g(x))
Hints
Solution
Your Code
15 min