Skip to main content

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


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)

Uploaded Source

Built Distribution

forbiddenfp-0.5-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page