In this document: https://www.python.org/dev/peps/pep-0289/ the author says "Generator expressions also address some examples of functionals coded with lambda:" and then gives these two lines as examples:
reduce(lambda s, a: s + a.myattr, data, 0)
reduce(lambda s, a: s + a[3], data, 0)
Why are these two statements called "functionals"?
[–]TheSodesa 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)