Functional Python: pipe & compose

Radoslaw Białowąs
1 min readMar 24, 2020

--

Pipe & compose —crucial buildings block of functional program

I was looking for a copy-paste block of these higher-order functions and I couldn’t find. It’s just 4 lines of concise of code so here we go:

Only difference is that compose evaluates input functions in reverse order.

I’m considering writing a suite of posts about introduction to functional programming in Python. Would you be interested in a breakdown of how pipe and compose and other basic concepts?

--

--