34
Wrap-@
•
The @-operator has (recently) been extended
to automatically wrap-around an array rather
than “falling off” -- excellent for “periodic
boundaries”:
•
•
var A : [1..n,1..n] double; -- array of doubles
•
…
•
A := A@^east; -- rotate columns left
•
:=
“Falling off” relative to
the declared dimensions