Example #1
0
 public function testCallGoal()
 {
     $x = fresh(function () {
         return conjPlus(eq(1, 1));
     });
     $result = callGoal($x);
     $this->assertEquals('((() . 0))', sprintf('%s', take(1, $result)));
 }
Example #2
0
function runStar($g)
{
    return map('MicroKanren\\Core\\reifyFirst', takeAll(callGoal(fresh($g))));
}