Build a generator that lazily filters and maps an iterable of numbers.
Constraints
Example
>>> gen = pipeline([1, 2, 3, 4]) >>> list(gen) [4, 16] >>> list(pipeline([])) [] >>> list(pipeline([5, 7, 9])) [] >>> list(pipeline([2])) [4]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints