Advertisement
Guest User

Untitled

a guest
Jun 9th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.19 KB | None | 0 0
  1. % this of course does not work
  2.  
  3. knownValue(7).
  4.  
  5. smallerThan(S,L) :- S<L, knownValue(L).
  6.  
  7.  
  8.  
  9.  
  10. %this does work
  11.  
  12. int(1..20).
  13. knownValue(7).
  14.  
  15. smallerThan(S,L) :- S<L, knownValue(L), int(S).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement