functionalpy
Project description
FunctionalPy
Python has implemented map
, filter
etc. as functions, rather than methods on a sequence. This makes the result harder to read and Iterators less used than they could be. FunctionalPy exists to change that.
Install
pip install functionalpy
Usage
from functionalpy import Seq
result = (Seq([1, 2])
.filter(lambda x: x % 2 == 0)
.map(lambda x: x * 2)
.to_list()
)
assert result == [4]
Dev environment setup
- Install Orbstack or Docker Desktop. Make sure to complete the full install process before continuing.
- If not installed, install VSCode
- Press this link
- Complete the setup process
💬 Where to ask questions
Type | |
---|---|
🚨 Bug Reports | GitHub Issue Tracker |
🎁 Feature Requests & Ideas | GitHub Issue Tracker |
👩💻 Usage Questions | GitHub Discussions |
🗯 General Discussion | GitHub Discussions |
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
functionalpy-0.8.0.tar.gz
(20.4 kB
view details)
Built Distribution
File details
Details for the file functionalpy-0.8.0.tar.gz
.
File metadata
- Download URL: functionalpy-0.8.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a43b82c54dd5179092c5f59253506197bb3198b49b24a8923ed19c4b6f88443 |
|
MD5 | 917323bfd67fffacffb74eb67f6bb0a5 |
|
BLAKE2b-256 | 6d9fdb8e046ec1f249460c77632e3c01f1f23c9162692bb362ed16d3147c9a6c |
File details
Details for the file functionalpy-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: functionalpy-0.8.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c60a75b00665f15f1fd939dc3626e8258f037e194b4fd69f02209ba89df2fd6 |
|
MD5 | 5a41899434faaa5a3c01a338763769b6 |
|
BLAKE2b-256 | 3ee1aa0ce868d829d20e149b0ee1a975d3eaadbf3ab8b661396b9f6fdd26d7cc |