Skip to main content

Building blocks for iterators, preserving their :func:`len`\ s.

Project description

pkg docs ci cov

Have you ever been annoyed that the length information of itertools have not been preserved?

This module faithfully wraps every one of them (together with map) where len can be derived:

>>> from itertools_len import chain, product
>>> len(chain('abc', [1, 2]))
>>> len(product('abc', [1, 2]))

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

itertools-len-1.0.tar.gz (18.6 kB view hashes)

Uploaded source

Built Distribution

itertools_len-1.0-py3-none-any.whl (16.8 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page