Course · Section 10: A Closer Look at Functions · Lecture 139: Functions Returning Functions
Implement `compose(...fns)` returning a function that applies the given functions right to left: `compose(f, g)(x)` equals `f(g(x))`.
+ 1 hidden test run on Submit.
compose folds the functions from the right so the rightmost runs first, matching mathematical composition.
Run your code to see results.