A functional library for Python.
Project description
Description
This library provides a functional programming interface for Python.
Result
The Result monad handles the three most common cases in programming:
- computation succeeded
- computation failed
- computation valid, but resulted in nothing
Examples
from fpinpy import Result
startValue = Result.of(1).map(lambda x: x + 1).forEachOrFail(lambda x: print(x))
Design
It is based on the work by Pierre-Yves Saumont in his books, Functional Programming in Java (2017) and The Joy of Kotlin (2019).
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
fpinpy-1.1.3-py3-none-any.whl
(20.4 kB
view hashes)