itertools — Functions creating iterators for efficient looping — Python 3.14.7 documentation

docs.python.org

Tin mới

Functional Programming Modules

functools — Higher-order functions and operations on callable objects

Python Module Index

3.14.7 Documentation

The Python Standard Library

Itertool Functions¶

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.

Itertool Functions¶

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.

operator: Functions corresponding to the standard operators.

This section shows recipes for creating an extended toolset using the existing itertools as building blocks.

collections: Container datatypes

This section shows recipes for creating an extended toolset using the existing itertools as building blocks.