- #1
Wez
can anyone help me out with this please
i want to create a recursive function in prolog to do the following thing
sum lists(X; Y;Z) holds for lists X = [x1; : : : xn], Y = [y1; : : : yn] and
Z of numbers if and only if Z = [z1; : : : zn] and zi = xi+yi (1 i n).
i want to create a recursive function in prolog to do the following thing
sum lists(X; Y;Z) holds for lists X = [x1; : : : xn], Y = [y1; : : : yn] and
Z of numbers if and only if Z = [z1; : : : zn] and zi = xi+yi (1 i n).