Advertisement
SVXX

Append Lists

Apr 29th, 2014
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. domains
  2.   list=integer*
  3.  
  4. predicates
  5.   append(list,list,list)
  6.  
  7. clauses
  8.   append([],[],[]).
  9.   append([],L,L).
  10.   append(L,[],L).
  11.   append([H|T1],L2,[H|T3]):-append(T1,L2,T3).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement