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).
Metadata
Release files for fpinpy 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fpinpy-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fpinpy-1.2.2-py3-none-any.whl
| Download URL | fpinpy-1.2.2-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8d9c6113506dd07fdeca6ec1a0d2f424ae7bb7a92d36ff70483de5fd1570b90
|
|
BLAKE2b-256 checksum How to use checksums |
0688d3d8a0320b7bd08e7272d4c641dc2584dd50c560f0fb79a99f9559df4915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|