up
previous
next
..
Syntax
M .. N
where M and N are of type INT or M and N are indeterminates of the
current ring.
Summary
range operator
Description
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.
Note: Large values for M and N are not permitted; typically
they should lie in the range about -10^9 to +10^9.
If x and y are indeterminates in a ring, then
x .. y
gives the indeterminates lying 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]
-------------------------------
See Also