Rust-like Option and Result implementation
Project description
Python Option and Result
_______ _______ __ __ __ _ _______ __ _
| || || |_| || | | || || | | |
| _____|| _ || || |_| || _|| |_| |
| |_____ | | | || || || | | || |
|_____ || |_| || ||_ || |_| || _ |
_____| || || ||_|| || | | || || | | |
|_______||_______||_| |_||_| |__||_______||_| |__|
Quick and dirty Rust like Option and Result implementation.
Influence from Rust std::option and std::result
Reference
This package implements many of the Rust Option and Result monad features. Some names have been altered slightly to prevent clashes with reserved keywords and clashes with builtins.
https://doc.rust-lang.org/std/result/
https://doc.rust-lang.org/std/option/
Installation
pip install somnon
Usage
Examples in progress. In the time being read through the above rust-docs, they mostly cover everything anyway.
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 Distribution
somnon-0.1.5.tar.gz
(40.2 kB
view details)
Built Distribution
somnon-0.1.5-py3-none-any.whl
(28.0 kB
view details)
File details
Details for the file somnon-0.1.5.tar.gz
.
File metadata
- Download URL: somnon-0.1.5.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53dd7613741b3768fdf32f02caaec28ce9a4ca8b5fef50d92b39917dfe16452 |
|
MD5 | fd98f17d3a0a928e4e18a28854d33d4b |
|
BLAKE2b-256 | 9895d954473ade86605134c6e6c0e917907c8e8aae5ad07918848159bf506126 |
File details
Details for the file somnon-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: somnon-0.1.5-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf483407a079954ccf6f512b48e3b4192cbbcebe83e4929d12291364af315b7 |
|
MD5 | 0cb4122b494de43ec0019fa7291b09d0 |
|
BLAKE2b-256 | 339710a19c35509f2121c0c981a51ce823d23b00e3cbf07d3d8c08296e472f03 |