I'm new to prolog and I'm doing some exercises for practice. I am adding two list in successor notation. The question and answer should be displayed in successor notation, but for convenience, I write it in numerical.
- List([1,1,1,1],[2,2,2,2],[3,3,3,3])
- List([9,9,9,9],[1,1,1,1],[1,1,1,1,0])
I get the answer of the question two [10,10,10,10] in successor notation easily, but the answer needs us to handle the digits, which means the expect ans is [s(0),s(0),s(0),s(0),0].