Guest User

Untitled

a guest
Aug 8th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.21 KB | None | 0 0
  1. list1([red,green,yellow,black,grey]).
  2. list1([orange,green,yellow,black,blue]).
  3.  
  4.  
  5.  
  6. on_list(Atom,ListX) :- ListX([Atom|_]).
  7.  
  8. on_list(Atom,ListX) :- ListX([_|Rest]),
  9.                       on_list(Atom,Rest).
Add Comment
Please, Sign In to add comment