Python Function Pipeline
In this article, we show how to use "Map & Reduce, not loop" to implement function pipeline in python
In the above code, you have to use nested functions to achieve the goal, which is kinda clunky. Actually, a more natural way is as following.
Here is how we implents pipeline_func: