Stage Pipeline
Hard · Concurrency
A pipeline is a chain of stages, each a goroutine that reads in, transforms, and writes out. Close the output when the input closes.
Write Gen(nums), Double(in), and Collect(in). RunPipeline(nums) is already written: generate, double, collect.
Next: LRU Cache