Issue 5477: Fix buglet in the itertools documentation.

This commit is contained in:
Raymond Hettinger 2009-03-12 00:35:05 +00:00
parent 52cafc50a6
commit 2b45819b75
1 changed files with 4 additions and 3 deletions

View File

@ -28,9 +28,10 @@ sequence ``f(0), f(1), ...``. This toolbox provides :func:`imap` and
:func:`count` which can be combined to form ``imap(f, count())`` to produce an :func:`count` which can be combined to form ``imap(f, count())`` to produce an
equivalent result. equivalent result.
The tools also work well with the high-speed functions in the :mod:`operator` These tools and their built-in counterparts also work well with the high-speed
module. For example, the plus-operator can be mapped across two vectors to functions in the :mod:`operator` module. For example, the multiplication
form an efficient dot-product: ``sum(imap(operator.add, vector1, vector2))``. operator can be mapped across two vectors to form an efficient dot-product:
``sum(imap(operator.mul, vector1, vector2))``.
**Infinite Iterators:** **Infinite Iterators:**