summaryrefslogtreecommitdiff
path: root/stdlib.pl
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib.pl')
-rw-r--r--stdlib.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib.pl b/stdlib.pl
index 8640bdf..bca7e31 100644
--- a/stdlib.pl
+++ b/stdlib.pl
@@ -358,6 +358,8 @@ is_list(T) :- list(T), ! ; type_error(list, T).
is_integer(T) :- integer(T), ! ; type_error(integer, T).
+is_predicate_indicator(T) :- (nonvar(T), T = N/A, integer(A), atom(N), !) ; type_error(predicate_indicator, T).
+
% All solutions
findall(Template, Goal, Instances) :-
@@ -372,7 +374,7 @@ findall(Template, Goal, Instances) :-
findall_collect([], Instances).
findall_collect(Acc, Instances) :-
- retract('find all'(Item)),
+ system:retract('find all'(Item)),
!,
findall_collect(Item, Acc, Instances).
findall_collect([], Instances, Instances).