0

the problem is adding two list as numbers L1 = [1,9,9] and L2 = [0,9,9]
?- sum([1,9,9],[0,9,9], Lo).
Lo = [2,9,8]
but I also wanted to add this
?- sum([8,1,9],[1,8,2],Lo).
Lo = [1, 0, 0, 1].
This is my code, I used the backtracking method I've learned :
link([],L,L).
link([Head|Tale],L...