boltons/docs/iterutils.rst

35 lines
798 B
ReStructuredText
Raw Normal View History

``iterutils`` - ``itertools`` improvements
==========================================
2015-03-22 00:12:50 +00:00
.. automodule:: boltons.iterutils
Iteration
---------
These are generators and convenient :class:`list`-producing
counterparts comprising several common patterns of iteration missing
from the standard library.
.. autofunction:: split
.. autofunction:: split_iter
.. autofunction:: chunked
.. autofunction:: chunked_iter
.. autofunction:: windowed
.. autofunction:: windowed_iter
Categorization
--------------
These functions operate on iterables, dividing into groups based on a given condition.
.. autofunction:: bucketize
.. autofunction:: partition
Type Checks
-----------
In the same vein as the feature-checking builtin, :func:`callable`.
.. autofunction:: is_iterable
.. autofunction:: is_scalar