Skip to content

Commit

Permalink
wrong erase (Jan W.)
Browse files Browse the repository at this point in the history
  • Loading branch information
friguzzi committed Jul 14, 2020
1 parent 83f1d0c commit 8fea36b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions prolog/mcintyre.pl
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,8 @@
retractall(M:sampled_g(_)).

save_samples(M,G):-
M:sampled(R,Sub,V),
assert(M:mem(G,R,Sub,V)),
erase(M:sampled(R,Sub,V)),
fail.
forall(retract(M:sampled(R,Sub,V)),
assertz(M:mem(G,R,Sub,V))).

save_samples(_M,_G).

Expand Down

0 comments on commit 8fea36b

Please sign in to comment.