Skip to content

FlyCloudC/miniKanren

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlyFloudC/miniKanren

miniKanren implemented in MoonBit.

It a Domain Specific Languages for logic programming.

http://minikanren.org/

Example

run_and_display(
  n=10,
  fn {
    v =>
      listo(v) & //
      membero(Int(1), v) &
      membero(Int(0), v)
  },
)

The result is

(1 0)
(0 1)
(1 0 _₀)
(1 _₀ 0)
(0 1 _₀)
(_₀ 1 0)
(1 0 _₀ _₁)
(0 _₀ 1)
(1 _₀ 0 _₁)
(1 _₀ _₁ 0)

About

miniKanren implemented in MoonBit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published