parts
Minimal library that enables partitioning of iterable objects in a concise manner.
Minimal library that enables partitioning of iterable objects in a concise manner.
To install this package, run one of the following:
This library provides a function for partitioning iterable data structure instances. When the number of parts is specified explicitly, it is treated as a strict requirement and an exception is raised when it cannot be satisfied. When a length for all parts (or each part) is specified explicitly, a best-effort approach is used: as many parts of the specified length are retrieved as possible, with the possibility that some parts at the end of the partition sequence have a shorter (but still non-zero) length.
Summary
Minimal library that enables partitioning of iterable objects in a concise manner.
Last Updated
Oct 18, 2023 at 17:27
License
MIT
Total Downloads
13.8K
Supported Platforms
GitHub Repository
https://github.com/lapets/partsDocumentation
https://github.com/lapets/parts