Skip to content
This repository was archived by the owner on Aug 15, 2018. It is now read-only.

skip duplicate type assertions #9

Open
mndrix opened this issue Mar 8, 2013 · 0 comments
Open

skip duplicate type assertions #9

mndrix opened this issue Mar 8, 2013 · 0 comments

Comments

@mndrix
Copy link
Owner

mndrix commented Mar 8, 2013

A predicate declared like this

%%  foo(A:atom, B:atom)
foo(X,X) :-
  true.

is expanded into

foo(X,X) :-
  the(atom, X),
  the(atom, X),
  true.

Those two type assertions are identical and should be not be repeated. This can be fixed by just calling sort(Assertions, Sorted) which removes duplicates from Assertions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant