Relative Content

Tag Archive for prolog

Strategy for writing a logic program

I have had a hard time learning logic programming thus far, and my request for outside resources on this site was met with some opprobrium, so perhaps this question better addresses both my needs and the requirements of this community:

How to creat list from table one row

I have table, and I wrote a predicate that creates a list from one table column. But unfortunately, it doesn’t work.
I expect the output N = [0, 1, 2]. But in fact I get an error.
Please tell me how to fix it.