|
| https://www.python.org/ |
| Table of Contents | https://docs.python.org/contents.html |
| Functional Programming HOWTO | https://docs.python.org/howto/functional.html |
| Introduction | https://docs.python.org/howto/functional.html#introduction |
| Formal provability | https://docs.python.org/howto/functional.html#formal-provability |
| Modularity | https://docs.python.org/howto/functional.html#modularity |
| Ease of debugging and testing | https://docs.python.org/howto/functional.html#ease-of-debugging-and-testing |
| Composability | https://docs.python.org/howto/functional.html#composability |
| Iterators | https://docs.python.org/howto/functional.html#iterators |
| Data Types That Support Iterators | https://docs.python.org/howto/functional.html#data-types-that-support-iterators |
| Generator expressions and list comprehensions | https://docs.python.org/howto/functional.html#generator-expressions-and-list-comprehensions |
| Generators | https://docs.python.org/howto/functional.html#generators |
| Passing values into a generator | https://docs.python.org/howto/functional.html#passing-values-into-a-generator |
| Built-in functions | https://docs.python.org/howto/functional.html#built-in-functions |
| The itertools module | https://docs.python.org/howto/functional.html#the-itertools-module |
| Creating new iterators | https://docs.python.org/howto/functional.html#creating-new-iterators |
| Calling functions on elements | https://docs.python.org/howto/functional.html#calling-functions-on-elements |
| Selecting elements | https://docs.python.org/howto/functional.html#selecting-elements |
| Combinatoric functions | https://docs.python.org/howto/functional.html#combinatoric-functions |
| Grouping elements | https://docs.python.org/howto/functional.html#grouping-elements |
| The functools module | https://docs.python.org/howto/functional.html#the-functools-module |
| The operator module | https://docs.python.org/howto/functional.html#the-operator-module |
| Small functions and the lambda expression | https://docs.python.org/howto/functional.html#small-functions-and-the-lambda-expression |
| Revision History and Acknowledgements | https://docs.python.org/howto/functional.html#revision-history-and-acknowledgements |
| References | https://docs.python.org/howto/functional.html#references |
| General | https://docs.python.org/howto/functional.html#general |
| Python-specific | https://docs.python.org/howto/functional.html#python-specific |
| Python documentation | https://docs.python.org/howto/functional.html#python-documentation |
| Enum HOWTO | https://docs.python.org/howto/enum.html |
| Logging HOWTO | https://docs.python.org/howto/logging.html |
| Report a bug | https://docs.python.org/bugs.html |
| Improve this page | https://docs.python.org/improve-page-nojs.html |
| Show source
| https://github.com/python/cpython/blob/main/Doc/howto/functional.rst?plain=1 |
| index | https://docs.python.org/genindex.html |
| modules | https://docs.python.org/py-modindex.html |
| next | https://docs.python.org/howto/logging.html |
| previous | https://docs.python.org/howto/enum.html |
| Python | https://www.python.org/ |
| 3.14.6 Documentation | https://docs.python.org/index.html |
| Python HOWTOs | https://docs.python.org/howto/index.html |
| Functional Programming HOWTO | https://docs.python.org/howto/functional.html |
| ¶ | https://docs.python.org/howto/functional.html#functional-programming-howto |
| iterator | https://docs.python.org/glossary.html#term-iterator |
| generator | https://docs.python.org/glossary.html#term-generator |
| itertools | https://docs.python.org/library/itertools.html#module-itertools |
| functools | https://docs.python.org/library/functools.html#module-functools |
| ¶ | https://docs.python.org/howto/functional.html#introduction |
| Iterators | https://docs.python.org/howto/functional.html#functional-howto-iterators |
| print() | https://docs.python.org/library/functions.html#print |
| time.sleep() | https://docs.python.org/library/time.html#time.sleep |
| ¶ | https://docs.python.org/howto/functional.html#formal-provability |
| ¶ | https://docs.python.org/howto/functional.html#modularity |
| ¶ | https://docs.python.org/howto/functional.html#ease-of-debugging-and-testing |
| ¶ | https://docs.python.org/howto/functional.html#composability |
| ¶ | https://docs.python.org/howto/functional.html#iterators |
| __next__() | https://docs.python.org/library/stdtypes.html#iterator.__next__ |
| StopIteration | https://docs.python.org/library/exceptions.html#StopIteration |
| iter() | https://docs.python.org/library/functions.html#iter |
| TypeError | https://docs.python.org/library/exceptions.html#TypeError |
| iterable | https://docs.python.org/glossary.html#term-iterable |
| for | https://docs.python.org/reference/compound_stmts.html#for |
| iter() | https://docs.python.org/library/functions.html#iter |
| list() | https://docs.python.org/library/stdtypes.html#list |
| tuple() | https://docs.python.org/library/stdtypes.html#tuple |
| max() | https://docs.python.org/library/functions.html#max |
| min() | https://docs.python.org/library/functions.html#min |
| __next__() | https://docs.python.org/library/stdtypes.html#iterator.__next__ |
| ¶ | https://docs.python.org/howto/functional.html#data-types-that-support-iterators |
| iter() | https://docs.python.org/library/functions.html#iter |
| iter() | https://docs.python.org/library/functions.html#iter |
| values() | https://docs.python.org/library/stdtypes.html#dict.values |
| items() | https://docs.python.org/library/stdtypes.html#dict.items |
| dict() | https://docs.python.org/library/stdtypes.html#dict |
| readline() | https://docs.python.org/library/io.html#io.TextIOBase.readline |
| ¶ | https://docs.python.org/howto/functional.html#generator-expressions-and-list-comprehensions |
| https://www.haskell.org/ | https://www.haskell.org/ |
| ¶ | https://docs.python.org/howto/functional.html#generators |
| yield | https://docs.python.org/reference/simple_stmts.html#yield |
| bytecode | https://docs.python.org/glossary.html#term-bytecode |
| __next__() | https://docs.python.org/reference/expressions.html#generator.__next__ |
| __next__() | https://docs.python.org/reference/expressions.html#generator.__next__ |
| __next__() | https://docs.python.org/library/stdtypes.html#iterator.__next__ |
| Lib/test/test_generators.py | https://github.com/python/cpython/tree/3.14/Lib/test/test_generators.py |
| ¶ | https://docs.python.org/howto/functional.html#passing-values-into-a-generator |
| yield | https://docs.python.org/reference/simple_stmts.html#yield |
| PEP 342 | https://peps.python.org/pep-0342/ |
| send(value) | https://docs.python.org/reference/expressions.html#generator.send |
| __next__() | https://docs.python.org/reference/expressions.html#generator.__next__ |
| send() | https://docs.python.org/reference/expressions.html#generator.send |
| send() | https://docs.python.org/reference/expressions.html#generator.send |
| throw(value) | https://docs.python.org/reference/expressions.html#generator.throw |
| close() | https://docs.python.org/reference/expressions.html#generator.close |
| GeneratorExit | https://docs.python.org/library/exceptions.html#GeneratorExit |
| StopIteration | https://docs.python.org/library/exceptions.html#StopIteration |
| RuntimeError | https://docs.python.org/library/exceptions.html#RuntimeError |
| GeneratorExit | https://docs.python.org/library/exceptions.html#GeneratorExit |
| ¶ | https://docs.python.org/howto/functional.html#built-in-functions |
| map() | https://docs.python.org/library/functions.html#map |
| filter() | https://docs.python.org/library/functions.html#filter |
| map(f, iterA, iterB, ...) | https://docs.python.org/library/functions.html#map |
| filter(predicate, iter) | https://docs.python.org/library/functions.html#filter |
| enumerate(iter, start=0) | https://docs.python.org/library/functions.html#enumerate |
| enumerate() | https://docs.python.org/library/functions.html#enumerate |
| sorted(iterable, key=None, reverse=False) | https://docs.python.org/library/functions.html#sorted |
| sort() | https://docs.python.org/library/stdtypes.html#list.sort |
| Sorting Techniques | https://docs.python.org/howto/sorting.html#sortinghowto |
| any(iter) | https://docs.python.org/library/functions.html#any |
| all(iter) | https://docs.python.org/library/functions.html#all |
| zip(iterA, iterB, ...) | https://docs.python.org/library/functions.html#zip |
| lazy evaluation | https://en.wikipedia.org/wiki/Lazy_evaluation |
| ¶ | https://docs.python.org/howto/functional.html#the-itertools-module |
| itertools | https://docs.python.org/library/itertools.html#module-itertools |
| ¶ | https://docs.python.org/howto/functional.html#creating-new-iterators |
| itertools.count(start, step) | https://docs.python.org/library/itertools.html#itertools.count |
| itertools.cycle(iter) | https://docs.python.org/library/itertools.html#itertools.cycle |
| itertools.repeat(elem, [n]) | https://docs.python.org/library/itertools.html#itertools.repeat |
| itertools.chain(iterA, iterB, ...) | https://docs.python.org/library/itertools.html#itertools.chain |
| itertools.islice(iter, [start], stop, [step]) | https://docs.python.org/library/itertools.html#itertools.islice |
| itertools.tee(iter, [n]) | https://docs.python.org/library/itertools.html#itertools.tee |
| ¶ | https://docs.python.org/howto/functional.html#calling-functions-on-elements |
| operator | https://docs.python.org/library/operator.html#module-operator |
| operator.add(a, b) | https://docs.python.org/library/operator.html#operator.add |
| operator.ne(a, b) | https://docs.python.org/library/operator.html#operator.ne |
| operator.attrgetter('id') | https://docs.python.org/library/operator.html#operator.attrgetter |
| itertools.starmap(func, iter) | https://docs.python.org/library/itertools.html#itertools.starmap |
| ¶ | https://docs.python.org/howto/functional.html#selecting-elements |
| itertools.filterfalse(predicate, iter) | https://docs.python.org/library/itertools.html#itertools.filterfalse |
| filter() | https://docs.python.org/library/functions.html#filter |
| itertools.takewhile(predicate, iter) | https://docs.python.org/library/itertools.html#itertools.takewhile |
| itertools.dropwhile(predicate, iter) | https://docs.python.org/library/itertools.html#itertools.dropwhile |
| itertools.compress(data, selectors) | https://docs.python.org/library/itertools.html#itertools.compress |
| ¶ | https://docs.python.org/howto/functional.html#combinatoric-functions |
| itertools.combinations(iterable, r) | https://docs.python.org/library/itertools.html#itertools.combinations |
| itertools.permutations(iterable, r=None) | https://docs.python.org/library/itertools.html#itertools.permutations |
| itertools.combinations_with_replacement(iterable, r) | https://docs.python.org/library/itertools.html#itertools.combinations_with_replacement |
| ¶ | https://docs.python.org/howto/functional.html#grouping-elements |
| itertools.groupby(iter, key_func=None) | https://docs.python.org/library/itertools.html#itertools.groupby |
| groupby() | https://docs.python.org/library/itertools.html#itertools.groupby |
| groupby() | https://docs.python.org/library/itertools.html#itertools.groupby |
| ¶ | https://docs.python.org/howto/functional.html#the-functools-module |
| functools | https://docs.python.org/library/functools.html#module-functools |
| functools.partial() | https://docs.python.org/library/functools.html#functools.partial |
| partial() | https://docs.python.org/library/functools.html#functools.partial |
| functools.reduce(func, iter, [initial_value]) | https://docs.python.org/library/functools.html#functools.reduce |
| TypeError | https://docs.python.org/library/exceptions.html#TypeError |
| operator.add() | https://docs.python.org/library/operator.html#operator.add |
| functools.reduce() | https://docs.python.org/library/functools.html#functools.reduce |
| sum() | https://docs.python.org/library/functions.html#sum |
| functools.reduce() | https://docs.python.org/library/functools.html#functools.reduce |
| for | https://docs.python.org/reference/compound_stmts.html#for |
| itertools.accumulate(iterable, func=operator.add) | https://docs.python.org/library/itertools.html#itertools.accumulate |
| ¶ | https://docs.python.org/howto/functional.html#the-operator-module |
| operator | https://docs.python.org/library/operator.html#module-operator |
| ¶ | https://docs.python.org/howto/functional.html#small-functions-and-the-lambda-expression |
| lambda | https://docs.python.org/reference/expressions.html#lambda |
| sum() | https://docs.python.org/library/functions.html#sum |
| functools.reduce() | https://docs.python.org/library/functools.html#functools.reduce |
| ¶ | https://docs.python.org/howto/functional.html#revision-history-and-acknowledgements |
| ¶ | https://docs.python.org/howto/functional.html#references |
| ¶ | https://docs.python.org/howto/functional.html#general |
| https://mitpress.mit.edu/sicp | https://mitpress.mit.edu/sicp |
| https://defmacro.org/2006/06/19/fp.html | https://defmacro.org/2006/06/19/fp.html |
| https://en.wikipedia.org/wiki/Functional_programming | https://en.wikipedia.org/wiki/Functional_programming |
| https://en.wikipedia.org/wiki/Coroutine | https://en.wikipedia.org/wiki/Coroutine |
| https://en.wikipedia.org/wiki/Partial_application | https://en.wikipedia.org/wiki/Partial_application |
| https://en.wikipedia.org/wiki/Currying | https://en.wikipedia.org/wiki/Currying |
| ¶ | https://docs.python.org/howto/functional.html#python-specific |
| https://gnosis.cx/TPiP/ | https://gnosis.cx/TPiP/ |
| part 1 | https://developer.ibm.com/articles/l-prog/ |
| part 2 | https://developer.ibm.com/tutorials/l-prog2/ |
| part 3 | https://developer.ibm.com/tutorials/l-prog3/ |
| ¶ | https://docs.python.org/howto/functional.html#python-documentation |
| itertools | https://docs.python.org/library/itertools.html#module-itertools |
| functools | https://docs.python.org/library/functools.html#module-functools |
| operator | https://docs.python.org/library/operator.html#module-operator |
| PEP 289 | https://peps.python.org/pep-0289/ |
| PEP 342 | https://peps.python.org/pep-0342/ |
| Table of Contents | https://docs.python.org/contents.html |
| Functional Programming HOWTO | https://docs.python.org/howto/functional.html |
| Introduction | https://docs.python.org/howto/functional.html#introduction |
| Formal provability | https://docs.python.org/howto/functional.html#formal-provability |
| Modularity | https://docs.python.org/howto/functional.html#modularity |
| Ease of debugging and testing | https://docs.python.org/howto/functional.html#ease-of-debugging-and-testing |
| Composability | https://docs.python.org/howto/functional.html#composability |
| Iterators | https://docs.python.org/howto/functional.html#iterators |
| Data Types That Support Iterators | https://docs.python.org/howto/functional.html#data-types-that-support-iterators |
| Generator expressions and list comprehensions | https://docs.python.org/howto/functional.html#generator-expressions-and-list-comprehensions |
| Generators | https://docs.python.org/howto/functional.html#generators |
| Passing values into a generator | https://docs.python.org/howto/functional.html#passing-values-into-a-generator |
| Built-in functions | https://docs.python.org/howto/functional.html#built-in-functions |
| The itertools module | https://docs.python.org/howto/functional.html#the-itertools-module |
| Creating new iterators | https://docs.python.org/howto/functional.html#creating-new-iterators |
| Calling functions on elements | https://docs.python.org/howto/functional.html#calling-functions-on-elements |
| Selecting elements | https://docs.python.org/howto/functional.html#selecting-elements |
| Combinatoric functions | https://docs.python.org/howto/functional.html#combinatoric-functions |
| Grouping elements | https://docs.python.org/howto/functional.html#grouping-elements |
| The functools module | https://docs.python.org/howto/functional.html#the-functools-module |
| The operator module | https://docs.python.org/howto/functional.html#the-operator-module |
| Small functions and the lambda expression | https://docs.python.org/howto/functional.html#small-functions-and-the-lambda-expression |
| Revision History and Acknowledgements | https://docs.python.org/howto/functional.html#revision-history-and-acknowledgements |
| References | https://docs.python.org/howto/functional.html#references |
| General | https://docs.python.org/howto/functional.html#general |
| Python-specific | https://docs.python.org/howto/functional.html#python-specific |
| Python documentation | https://docs.python.org/howto/functional.html#python-documentation |
| Enum HOWTO | https://docs.python.org/howto/enum.html |
| Logging HOWTO | https://docs.python.org/howto/logging.html |
| Report a bug | https://docs.python.org/bugs.html |
| Improve this page | https://docs.python.org/improve-page-nojs.html |
| Show source
| https://github.com/python/cpython/blob/main/Doc/howto/functional.rst?plain=1 |
| index | https://docs.python.org/genindex.html |
| modules | https://docs.python.org/py-modindex.html |
| next | https://docs.python.org/howto/logging.html |
| previous | https://docs.python.org/howto/enum.html |
| Python | https://www.python.org/ |
| 3.14.6 Documentation | https://docs.python.org/index.html |
| Python HOWTOs | https://docs.python.org/howto/index.html |
| Functional Programming HOWTO | https://docs.python.org/howto/functional.html |
| Copyright | https://docs.python.org/copyright.html |
| History and License | https://docs.python.org/license.html |
| Please donate. | https://www.python.org/psf/donations/ |
| Found a bug | https://docs.python.org/bugs.html |
| Sphinx | https://www.sphinx-doc.org/ |