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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file list_flatten-0.1.6.tar.gz.
File metadata
- Download URL: list_flatten-0.1.6.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.10 Linux/5.15.0-60-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afef6a344308e36e1540eaff67cdcf00f7823cb787a00a773c4114b43f6dac51
|
|
| MD5 |
24012d462719ce385e3d0ff1730a4fd7
|
|
| BLAKE2b-256 |
92cbef280d68b5738738b21aa20b607af885b56f829df98c96c0a2abe20fb778
|
File details
Details for the file list_flatten-0.1.6-py3-none-any.whl.
File metadata
- Download URL: list_flatten-0.1.6-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.8.10 Linux/5.15.0-60-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07fa278ca6cb60a66616598e35128b585cba39786a34cf4e3c1f2d8ce7bd023b
|
|
| MD5 |
757339fca7fc941e0a58108b3fc44aab
|
|
| BLAKE2b-256 |
5cb0f7f6a69e8a6ed5f88e1604d9e8968a8706cab59f96661eb816e8aa6eed7e
|