SET _ _ _ _ _ _ _ _ _ _ _ _ operator
The set operator is used for assignments when you want both sides of the assignment statement to be evaluated.
set(<restricted\_expression>,<expression>)
<expression> can be any REDUCE expression; <restricted\_expression> must be an identifier or an expression that evaluates to an identifier.
a := y; A := Y set(a,sin(x^2)); 2 SIN(X ) a; 2 SIN(X ) y; 2 SIN(X ) a := b + c; A := B + C set(a-c,z); Z b; Z
Using an array or matrix reference as the first argument to set has the result of setting the contents of the designated element to set's second argument. You should be careful to avoid unwanted side effects when you use this facility.