Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. % here the solution is already found and there's nothing to be done.
  2. findsolution:-
  3. solution(X).
  4.  
  5. % trying to find the solution and use assert/1 if it was found.
  6. findsolution:-
  7. do_something,
  8. do_whatever,
  9. assert(solution(X)).
  10.  
  11. findsolution:- solution(X), !.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement