← Back to context

Comment by ramses0

6 hours ago

Thanks for the reference! `pyswip` is the closest I've seen so far:

    pl.consult("some-facts.pl")
    pl.assertz("new(fact)")
    while pl.Query(...).nextSolution():
        print( X.value )

...will definitely keep it in my back pocket!