up previous next

Range Operator

If M and N are of type INT, then the expression:
      M .. N
returns
      * the list [M, M+1, ... ,N] if M <= N;
      * the empty list, [], otherwise.
If x and y are indeterminates in a ring, then
      x .. y
gives the indeterminates between x and y in the order they appear in the definition of the ring.

example

    
1..10;
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
-------------------------------
Use R ::= Q[x,y,z,a,b,c,d];
z..c;
[z, a, b, c]
-------------------------------