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 hashes)
Built Distribution
Close
Hashes for functional_flow-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea67983e0fc36e64ad4eded2a41922756c335f90343a2725342e559683f21d7 |
|
MD5 | b3f78ad4bce9eca8cceb95da3a257a8b |
|
BLAKE2b-256 | f0082bf7adf79ef87e001fbb43f0716f398f7a282cbb156aaa2b1baa5b8a81c5 |