listools: a Python 3 library of list functions
Project description
This library provides utility functions for dealing with lists in Python 3. listools supports Python version 3.0 and newer. It is contained in a single Python file, so it can be easily copied into your project (the copyright and license notice must be retained). Alternatively, you can install it using pip install listools.
Bugs can be reported to https://github.com/gilbertohasnofb/listools/issues.
This library contains the following functions:
listools.flatten(input_list)
listools.partial_flatten(input_list[, depth])
listools.concat_flatten(*input_lists)
listools.sum_flatten(input_list)
listools.len_flatten(input_list)
listools.index_flatten(element, input_list)
listools.zip_cycle(*input_iters)
listools.zip_cycle_flatten(*input_lists)
All functions have a __doc__ attribute with usage instructions.
This library is published under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.