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:
"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.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for forbiddenfp-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0bb99aee75d91ae72814f93b18861c650d37f4ef8df7efad35b502b80554e9 |
|
MD5 | 4a3b05559bfa7b5cf594802297336579 |
|
BLAKE2b-256 | 356ed5df813bc4dd65e4264ea4194f34fdd6e528c5ea0c0e5ddedded22b8e74e |