algebraic-data-type-0.0.4
توضیحات
Algebraic data type and pattern matching
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | algebraic-data-type-0.0.4 |
| نام | algebraic-data-type |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Caleb Foong |
| ایمیل نویسنده | catethos@gmail.com |
| آدرس صفحه اصلی | https://github.com/catethos/adt |
| آدرس اینترنتی | https://pypi.org/project/algebraic-data-type/ |
| مجوز | The MIT License |
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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pampy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl algebraic-data-type-0.0.4:
pip install algebraic-data-type-0.0.4.whl
نصب پکیج tar.gz algebraic-data-type-0.0.4:
pip install algebraic-data-type-0.0.4.tar.gz