Authors: K. S. Ooi
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
Comments: 6 Pages.
Download: PDF
[v1] 2020-12-26 12:10:53
Unique-IP document downloads: 295 times
Vixra.org is a pre-print repository rather than a journal. Articles hosted may not yet have been verified by peer-review and should be treated as preliminary. In particular, anything that appears to include financial or legal advice or proposed medical treatments should be treated with due caution. Vixra.org will not be responsible for any consequences of actions that result from any form of use of any documents on this website.
Add your own feedback and questions here:
You are equally welcome to be positive or negative about any paper but please be polite. If you are being critical you must mention at least one specific error, otherwise your comment will be deleted as unhelpful.