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.3.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for forbiddenfp-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4bec9b28c1c5e26dbec6ca1f744fd7f23e6e031132ac63562a0ec5f61f4aa8a |
|
MD5 | 55d3e721e4a4c966c7c6e2fbf4e63645 |
|
BLAKE2b-256 | 608fd0f790d13fd5aba9e7672fa26194cd6c30ca73be7ae3785b61c17273d815 |