Higher-level functions in Python, Part 3 - filter

Posted on June 14, 2018 in Python

In our final installment for the Higher Level Function in Python Series, we dive into the Python filter function. No sidetracks this time around. We simply take a look at how it's used, try to find a way where it would be superior to list comprehensions, fail, and conclude the series.


Continue reading

Higher-level functions in Python, Part 2 - reduce

Posted on June 04, 2018 in Python

We go through uses of the Python reduce function, when it's useful and its performance benefits. This time, we spend some time exploring function composition, and how to manage large function chains, e.g. in a data processing pipeline.


Continue reading

Higher-level functions in Python, Part 1 - map

Posted on May 30, 2018 in Python

We go through uses of the Python map function, when it's useful and its performance benefits, and get sidetracked into benchmarking different syntaxes for exponential expressions.


Continue reading