Functional Programming

itertools — Functions creating iterators for efficient looping

This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.

functools — Higher-order functions and operations on callable objects

Source code: Lib/functools.py

operator — Standard operators as functions

Source code: Lib/operator.py