module stuff.
This commit is contained in:
parent
5ce80cfe8a
commit
37b79f663f
@ -183,12 +183,14 @@ prolog:copy_term(Term, Copy, Gs) :-
|
||||
-> Gs = [],
|
||||
copy_term(Term, Copy)
|
||||
; findall(Term-Gs,
|
||||
( attvars_residuals(Vs, Gs, []),
|
||||
delete_attributes(Term)
|
||||
),
|
||||
'$attributes':residuals_and_delete_attributes(Vs, Gs, Term),
|
||||
[Copy-Gs])
|
||||
).
|
||||
|
||||
residuals_and_delete_attributes(Vs, Gs, Term) :-
|
||||
attvars_residuals(Vs, Gs, []),
|
||||
delete_attributes(Term).
|
||||
|
||||
attvars_residuals([]) --> [].
|
||||
attvars_residuals([V|Vs]) -->
|
||||
( { get_attrs(V, As) }
|
||||
|
Reference in New Issue
Block a user