A simple python package to flatten a list of lists. Works for 2d and 3d lists.
Project description
list-flatten
list-flatten is a Python library used to flatten a list of lists. Works for 2d and 3d lists.
Installation
Use the package manager pip to install foobar.
pip install list-flatten
Usage
import list-flatten as flatten_list2darr
# returns 'words'
print(flatten_list2darr([[1,2], [3,4,5]]))
print(flatten_list3darr([[[1,2], [3,4], [5,6,7]]]))
## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
list_flatten-0.1.5.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for list_flatten-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122d023d6c0884b036384b2611e7befc8778f9cbe5d6703d919b37c8a39117bd |
|
MD5 | dfc6988e3a2b20a2341c108204f78487 |
|
BLAKE2b-256 | dd313956169007edf3680be57b3ad7a283157f8b79ff5087bfda950be5750575 |