Practice ยท 2 of 3
Compose
Implement compose(f, g) returning a new function h where h(x) == f(g(x)) โ g runs first, then f.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Higher-Order Function Drills
Practice ยท 2 of 3
Implement compose(f, g) returning a new function h where h(x) == f(g(x)) โ g runs first, then f.
Difficulty: intermediate
Back to lesson: Practice: Higher-Order Function Drills