mirror of https://github.com/python/cpython
merge
This commit is contained in:
commit
3339f68141
|
@ -250,7 +250,7 @@ The :mod:`functools` module defines the following functions:
|
||||||
a default when the sequence is empty. If *initializer* is not given and
|
a default when the sequence is empty. If *initializer* is not given and
|
||||||
*sequence* contains only one item, the first item is returned.
|
*sequence* contains only one item, the first item is returned.
|
||||||
|
|
||||||
Equivalent to::
|
Roughly equivalent to::
|
||||||
|
|
||||||
def reduce(function, iterable, initializer=None):
|
def reduce(function, iterable, initializer=None):
|
||||||
it = iter(iterable)
|
it = iter(iterable)
|
||||||
|
|
Loading…
Reference in New Issue