Skip to content
This repository was archived by the owner on Feb 8, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 441 Bytes

File metadata and controls

13 lines (10 loc) · 441 Bytes

Description

A Prolog implementation of microKanren as described in the paper μKanren: A Minimal Functional Core for Relational Programming by Jason Hemann and Daniel P. Friedman.

Example

% swipl -s microkanren.pl
?- [examples].
?- empty_state(S0), call_fresh(X,fives_and_sixes(X),S0,[A,B,C|_]).
A = C, C = state([var(1)-5], 2),
B = state([var(1)-6], 2).