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.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for forbiddenfp-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3488c6542877cbe0b6313c8471e747a54d8799990f710b5b75a6fa3140b7f3 |
|
MD5 | 96b96d7b5f71c9b42a848831601c2d96 |
|
BLAKE2b-256 | 50628080531ce9cfeed031a70dcc6f32fbcd6b9c0834a5446696654bb4e279e0 |