Algebraic data type and pattern matching
Project description
Algebraic Data Type
To install the package pip install algebraic-data-type
ADT
[To be written]
Pattern Matching
from adt import Multimethod
with Multimethod() as fib:
fib[1] = 1
fib[2] = 1
fib[int] = lambda x: fib(x-1) + fib(x-2)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for algebraic-data-type-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e228a4e1e543c81f970fd9511e0879af85131e80bf968b34fdda2127a617eb |
|
MD5 | e24edcb3556a43ae6dffca66614ae5c9 |
|
BLAKE2b-256 | 4bfaa8a1c38093d66cb8a6794703806a05b4aa4b0c442e4a0c03b0a81a17e30b |
Close
Hashes for algebraic_data_type-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1c298a404c2b2b953758cfae24d2b3692a1694fe27955276ebfbc78b8c968a |
|
MD5 | 008c20b974a21ad98a92bdefd0586d99 |
|
BLAKE2b-256 | 330f4aab2e2b79670aa3c858b6d79752f659f5fb6ef3825156b51e8126cdbc94 |