Skip to content
python implementation of µKanren
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
example.py
microkanren.py

README.md

microKanren

python implementation of µKanren

Short example

from microkanren import var

x = var('x')
q = var('q')
body = (x == q) & (x == 3)

for solution in body.run():
    print(solution[q])
You can’t perform that action at this time.