Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Algebraic data type and pattern matching

Project description

Algebraic Data Type

To install the package pip install algebraic-data-type


[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)



To run the tests, clone the repo and use pytest

>>> git clone

>>> cd adt/

>>> pytest

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for algebraic-data-type, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size algebraic_data_type-0.0.4-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size algebraic-data-type-0.0.4.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page