Basically only a function to iterate through tuples and add their values. Example: (1,2)+(2,3)=(3,5)
Project description
- The function flatten(*argv) takes an arbitrary amount of tuples and returns the sum of of each indices’ value. The tuples should have the same length.
- Example:>>> from tuple_flatten import flatten>>> flatten((1, 5), (2, 7))(3, 12)::
- It is not necessary for all tuples to be equally sized, as long as each tuple in the arguments is either shorter or equally sized as its predecessor.
- Example:>>> flatten((1, 7), (3,))(4, 7)::
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.
Source Distribution
tuple_flatten-1.0.tar.gz
(1.4 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 tuple_flatten-1.0.tar.gz.
File metadata
- Download URL: tuple_flatten-1.0.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5433876fd5ed3117be5326369cc0f3995431fba0dcc6c28e3928c6b97041bb
|
|
| MD5 |
0ba32eac91a16e78d22ad5fd383f3a95
|
|
| BLAKE2b-256 |
8b96a295a8bb57c43215da7fdb18c051b8e67873c7c7124beee71c1f70166d76
|
File details
Details for the file tuple_flatten-1.0-py3-none-any.whl.
File metadata
- Download URL: tuple_flatten-1.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e78c2f31d49d80f2a074b5c7aaca56cd1811501d09819d143ba08c29d0bef29f
|
|
| MD5 |
6b58a253bbf2801d6d16b32d2493ec14
|
|
| BLAKE2b-256 |
ef2067d5c6ca637a95450439fbc7c4ceecc82d04e692c2ed675887f3fc5d6e61
|