Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd81cbd

Browse files
gerrithollrhettinger
authored andcommitted
DOC: In reduce, refer to accumulate (GH-7930)
1 parent 5b6e49a commit bd81cbd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/functools.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ The :mod:`functools` module defines the following functions:
263263
value = function(value, element)
264264
return value
265265

266+
See :func:`itertools.accumulate` for an iterator that yields all intermediate
267+
values.
266268

267269
.. decorator:: singledispatch
268270

0 commit comments

Comments
 (0)