You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, it uses the not/1 predicate, which is not given in the text, and negation in general is not discussed until chapter 10. Unfortunately, I don't think there's a way to cleanly answer this without negation. You can write it in a way that the first result of set/2 will be the one you are looking for, but subsequent results from set([...],X). will have duplicate entries, and queries to set([...],[...]). with duplicate entries in the second argument will succeed.
The text was updated successfully, but these errors were encountered:
Specifically, it uses the
not/1
predicate, which is not given in the text, and negation in general is not discussed until chapter 10. Unfortunately, I don't think there's a way to cleanly answer this without negation. You can write it in a way that the first result ofset/2
will be the one you are looking for, but subsequent results fromset([...],X).
will have duplicate entries, and queries toset([...],[...]).
with duplicate entries in the second argument will succeed.The text was updated successfully, but these errors were encountered: