Advertisement
logicmoo

Untitled

May 28th, 2015
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. succeeds_n_times(foo(X), Counter ) :-
  2.         Counter = counter(0,0,0),
  3.         (   arg(A,v(bar, baz, boo),X),
  4.             arg(A, Counter, N0),
  5.             N is N0 + 1,
  6.             nb_setarg(A, Counter, N),
  7.             fail
  8.       ....
  9.         ;  
  10.         ).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement