Advertisement
Guest User

prolo

a guest
Sep 18th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.28 KB | None | 0 0
  1. ?- L1 = [7,9,4,5,6], L2 = [1,2,3,4,5,6], ( append(X,Y,L1), append(X1, Y1, L2) ), ((X = Y1, X = [_,_,_]) ; (X = X1, X = [_,_,_]) ; (Y = X1, Y = [_,_,_]) ; (Y =Y1, Y = [_,_,_])).
  2.  
  3. L1 = [7, 9, 4, 5, 6],
  4. L2 = [1, 2, 3, 4, 5, 6],
  5. X = [7, 9],
  6. Y = Y1, Y1 = [4, 5, 6],
  7. X1 = [1, 2, 3] ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement