Finite-domain variables

A finite domain is a set of ground terms given as a list. The special notation $Begin$..$Step$..$End$ denotes the set of integers $\{B_1,B_2,\ldots,B_k\}$ where $B1=Begin$, $B_i = B_{i-1}+Step$ for $i=2,...,k$, $B_k \le End$ and $B_k+Step>End$. When the increment $Step$ is 1, the notation can be abbreviated as $Begin..End$. For example, the notation $1..2..10$ means the list [1,3,5,7,9], and $1..3$ means the list [1,2,3].

The following primitives are available on integer domain variables. As domain variables are also suspension variables, primitives on suspension variables such as frozen/1 can be applied to domain variables as well.

Neng-Fa Zhou 2012-01-03