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 list-flatten.
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.6.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for list_flatten-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fa278ca6cb60a66616598e35128b585cba39786a34cf4e3c1f2d8ce7bd023b |
|
MD5 | 757339fca7fc941e0a58108b3fc44aab |
|
BLAKE2b-256 | 5cb0f7f6a69e8a6ed5f88e1604d9e8968a8706cab59f96661eb816e8aa6eed7e |