I’m using the latest version of swipl-wasm in a js project. I can load a prolog file, containing:
p(a).
p(b).
p(c).
into the prolog engine, then from the js side, I can query:
for (const a of swipl.prolog.query('p(X)')) {
console.log(a.X);
}
and this returns, in the console:
a
b
It seems that the last solution isn’t reached (I tried also with other predicates). Can you reproduce this? Do you have any idea what this could be due to?
Thank you for the info @rla, it seems then that we have to wait for the commit to be released in the swipl repo (for now it’s in swipl-devel) as npm-swipl-wasm depends on that.
Actually, without particular hurry @jan, do you have any idea on when we could have a release of swi-prolog (that will be picked up by the npm package) containing this feature?