Python Arena

Module 51

Functional programming

Functional programming builds a program from functions that return new values instead of changing variables. The map and filter functions and the iterators they return, and reduce from the functools module, with numbers and with your own objects.

Steps

  1. Transforming with map
  2. Selecting with filter
  3. Combining with reduce