Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clpfd.adoc #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clpfd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ test(X, Y) :-

14 ?- test(X, Y).
X in 5..10, <5>
Y#=<X, <6>
Y#=<X+ -1, <6>
Y in 4..8.
-------------------------------------------

Expand Down Expand Up @@ -476,7 +476,7 @@ V in inf.. -2 \/ 0 \/ 2..16 \/ 18..sup

+in+ constrains a single variable.

+ins+ constrains a list of variables to the same values, the equivilent of maplist over the list with in.
+ins+ constrains a list of variables to the same values, the equivalent of maplist over the list with in.

.Overlapping Domains Exercise
********************************************************
Expand Down Expand Up @@ -1110,7 +1110,7 @@ Hint: use lex_chain
element(?Index, +List, ?Element)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Element is the constraint equivilent of +nth1/3+ .
Element is the constraint equivalent of +nth1/3+ .

It constrains an element of a list by it's location in the list. Element must be the Indexth member of List, counting from 1.

Expand Down