•
|
You can use the $ operator to return the expression sequence produced by substituting for i in expr the values m,m+1,...,n (or up to the last value not exceeding n).
|
•
|
If m>n then the NULL expression sequence is returned.
|
•
|
A call to $ in the form: $ m..n will have the same effect as the call: i $ i = m..n.
|
•
|
A call to $ in the form: expr $ n will have the same effect as the call: expr $ i = 1..n (assuming that expr does not contain i).
|
Note: It is recommended (and often necessary) that both 'expr' and 'i' be enclosed in single quotes to prevent premature evaluation. (If i had been assigned a value, the i in the expression would be evaluated to its value, and so could not be used as a counting variable.) The most common use is 'expr' $ 'i' = m..n.
•
|
In a procedure, $ is used as the end-of-parameters marker. For more information on this use of $, see Parameter Declarations.
|