Skip to main content

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:

  1. computation succeeded
  2. computation failed
  3. 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


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.2.2-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file fpinpy-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: fpinpy-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for fpinpy-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d9c6113506dd07fdeca6ec1a0d2f424ae7bb7a92d36ff70483de5fd1570b90
MD5 7ce91ee5b0d080692982ce10623514c6
BLAKE2b-256 0688d3d8a0320b7bd08e7272d4c641dc2584dd50c560f0fb79a99f9559df4915

See more details on using hashes here.

Supported by

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