ChatGPT fails to create a program for me

5 posts were split to a new topic: Findall/3 in place of bagof/3 or setof/3 a subtle bug?