Map vs Filter in Python 3

K. S. Ooi · viXra · 2020

Higher-order functions are essential tools for functional programmers, but majority of Python programmers are imperative. When the higher-order functions are used in imperative development, it usually has negative impact on readability of the code. With a small investment on understanding these higher-order functions, we may be able to alleviate some miscommunication between developers with different backgrounds in Python. In this article, two higher-order functions are examined: map and filter. Few examples are given in this article to illustrate their differences. Keywords: Python 3, higher-order functions, map, filter

Read the paper · More papers on PaperTik