Guest User

Untitled

a guest
Aug 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Finding a path between two lists
  2. %declare the list
  3. circle_line([cc1,cc2,cc3,cc4,cc5,cc6,cc7,cc8,cc9,cc10,cc11,cc12,cc13,cc14,cc15,cc16]).
  4.  
  5. %the predicate that finds the station i need
  6. check_for_station(A) :- circle_line(X),
  7. member(A,X),
  8. write(A),nl.
Add Comment
Please, Sign In to add comment