aalhour / aalhour/micro_kanren.py
Automate number-to-peano conversion.
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 10
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Automate the conversion of numbers from decimal to peano when passed as parameters to the relations "add" and "multiply".
Example:
``` python
goal = Goal.with_variables(
lambda x, y:
multiply(x, y, peano.to_peano(24)))
```
Will become:
``` python
goal = Goal.with_variables(
lambda x, y:
multiply(x, y, 24))
#24 is automatically converted to peano inside the relation.
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.