Course · Section 10: A Closer Look at Functions · Lecture 137: First-Class and Higher-Order Functions
Implement `pipeline(value, steps)` that applies a sequence of named steps to `value` in order. Steps are `inc` (add 1) or `double` (multiply by 2).
+ 1 hidden test run on Submit.
reduce threads the value through each named step in order, composing a small pipeline.
Run your code to see results.