avoid binding attributed variables.
This commit is contained in:
parent
c468d8431e
commit
35bbb9e7d1
@ -170,6 +170,9 @@ portray_clause(_).
|
||||
'$list_get_vars'(Args, M, N).
|
||||
|
||||
'$list_transform'([],_) :- !.
|
||||
'$list_transform'([X|L],M) :-
|
||||
attvar(X), !,
|
||||
'$list_transform'(L,N).
|
||||
'$list_transform'([X,Y|L],M) :- X == Y, X = '$VAR'(M), !, N is M+1,
|
||||
'$list_transform'(L,N).
|
||||
'$list_transform'('$VAR'(-1).L,M) :- !, '$list_transform'(L,M).
|
||||
|
Reference in New Issue
Block a user