December 2000
Intermediate to advanced
816 pages
16h 57m
English
In this section, we will look at the apply(), filter(), map(), and reduce() built-in functions as well as give some examples to show how they can be used. These functions provide the functional programming features found in Python. A summary of these functions is given in Table 11.1. All take a function object to somehow invoke.
| Built-in Function | Description |
|---|---|
| apply(func[, nkw][, kw]) | call func with optional arguments, nkw for non-keyword arguments and kw for keyword arguments; the return value is the return value of the function call |
| filter(func, seq) | invokes Boolean function func iteratively over each element of seq; returns a sequence ... |
Read now
Unlock full access