Scryer-prolog: findall/4 issue

Created on 26 Nov 2020  路  2Comments  路  Source: mthom/scryer-prolog

Hi Mark, in the discusion at https://github.com/infradig/trealla/issues/99
it was found that Scryer Prolog actually gives

$ scryer-prolog
?- findall(1, true, L, [a(X)]), X = 1.
   L = [1,a(X)], X = 1. 

whereas the expected answer is
L = [1,a(1)], X = 1

Most helpful comment

?- findall(1, false, L0,L).
   L0 = [], L = []. % unexpected

Expected: L0 = L

All 2 comments

Thanks! It looks like the issue is with printing the value of X rather than with the binding itself.

?- findall(1, false, L0,L).
   L0 = [], L = []. % unexpected

Expected: L0 = L

Was this page helpful?
0 / 5 - 0 ratings

Related issues

triska picture triska  路  3Comments

XVilka picture XVilka  路  3Comments

notoria picture notoria  路  3Comments

dcnorris picture dcnorris  路  3Comments

triska picture triska  路  3Comments