Metadata-Version: 2.1
Name: algebraic-data-type
Version: 0.0.3
Summary: Algebraic data type and pattern matching
Home-page: https://github.com/catethos/adt
Author: Caleb Foong
Author-email: catethos@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

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

Test
----
To run the tests, clone the repo and use pytest

```
>>> git clone https://github.com/catethos/adt.git

>>> cd adt/

>>> pytest
```


