Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. %True and False
  2. %----------------------------------------------
  3. add(X, (X,f)).
  4. add(X, (X,t)).
  5. %----------------------------------------------
  6.  
  7. %simple solve
  8. %----------------------------------------------
  9. smplSolve(L, S):-
  10. smplSolve(L, [], S).
  11.  
  12. smplSolvet([], R, R).
  13. smplSolve([H|T], R, A) :-
  14. add(H, X),
  15. smplSolve(T, [X|R], A).
  16. %----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement