lshift([H|L], S) :- append(L, [H], S). rshift(L, S) :- lshift(S, L).
append([], L, L). append([H|X], Y, [H|Z]) :- append(X, Y, Z).
No comments:
Post a Comment