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.5.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for forbiddenfp-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf35d0cafd6334db7d1d89163779019a4ff89c7505949b96bdfb6e2673abdd6 |
|
MD5 | 6d76d3fbcd93494855d659b1e7ca78ee |
|
BLAKE2b-256 | dc9d87efffd0e4837d6679ccd474b9b86a1ad2bc58a7cc71aab9b972b8de89bd |