Functions to work with list in python
Project description
PYLISTING
Functions to work with list in python
install
pip install pylistin
API
list_reduce <E, T>(list: list[E], callback: (ac: T, item: E, index: int, list: list[E]) -> T, ac_init: T) -> T
Move in for each all elements with a lamda function or def as callback for return a one result.
this function is used to loop through a list and accumulate a value.
from pylisting import list_reduce
print(list_reduce([2,5,9], lambda ac, item: ac + item, 0)) # 16
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
pylistin-0.0.3.tar.gz
(2.0 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 pylistin-0.0.3.tar.gz.
File metadata
- Download URL: pylistin-0.0.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00c75358ea1bc943b35e333322668f4edb22d41d5c9ea69089ae3fad6a1227b
|
|
| MD5 |
7e5a3dfe2e702361548863b7a52d6f96
|
|
| BLAKE2b-256 |
4f12ef607a696954edca0eb80b166976b0a709be47abdf2e3902dad4c1a9f4de
|
File details
Details for the file pylistin-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pylistin-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75d4bfe46916a79e2f0d2ed3433c9fe0018ab801e7537bbf17afcf1e0b9e1c32
|
|
| MD5 |
a31340fc5636948854dde15cf0a18eb7
|
|
| BLAKE2b-256 |
406de92dfbefb7466653ab91dbe534411e98c4510e0cb420ad8aa3164a27310d
|