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 | Actions Reset |
|---|---|---|---|---|
| fpinpy-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for fpinpy-1.2.2-py3-none-any.whl |
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
|
Security for fpinpy 1.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.