Forbidden Functional Programming in Python.
Project description
forbiddenfp
Functional-Programming (FP) in a forbidden way.
pip install forbiddenfp
This library patches builtin objects - so definitely Not Safe For Work.
But you achieve something like:
# import already patches objects
import forbiddenfp
"abc".then(lambda s: s * 2) # "abcabc"
"abc".apply(print).then(len) # print out "abc", then return 3
See more ./examples
.
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
forbiddenfp-0.4.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for forbiddenfp-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f59917151fe8a6f93ec47f96ccce1155911d5498ca198af8c496747e658df1a |
|
MD5 | fd70795021dc8829334a66b7ada0f34e |
|
BLAKE2b-256 | 35b203aa39452d19f43496e72b5ecd36e1c4c2708ce1c7ecad4fb392a45afa9c |