A small library for the compose and flow functions.
Project description
Functional Flow
This is a small library providing the compose and flow functions as inspired by James Sinclair's blog post.
Installation
pip install functional-flow
Usage
from functional_flow import compose, flow
f = lambda x: x + 1
g = lambda x: x * 3
dynamic_compose = compose(
f,
g
)
compose_result = dynamic_compose(3)
dynamic_flow = flow(
f,
g
)
flow_result = dynamic_flow(3)
print(compose_result)
print(flow_result)
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
functional_flow-0.0.1.tar.gz
(2.7 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 functional_flow-0.0.1.tar.gz.
File metadata
- Download URL: functional_flow-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f296f8981c041ddc34a3c8013a11443ebb12d2d7c212e8c15cfafcc594bf14e
|
|
| MD5 |
5ef0705d741395e429b0d500a17cc0ba
|
|
| BLAKE2b-256 |
d236c3b6263ea556a4d8368ab3dbdc6026955bd35fbe3d9062cd790176e479f2
|
File details
Details for the file functional_flow-0.0.1-py3-none-any.whl.
File metadata
- Download URL: functional_flow-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea67983e0fc36e64ad4eded2a41922756c335f90343a2725342e559683f21d7
|
|
| MD5 |
b3f78ad4bce9eca8cceb95da3a257a8b
|
|
| BLAKE2b-256 |
f0082bf7adf79ef87e001fbb43f0716f398f7a282cbb156aaa2b1baa5b8a81c5
|