Fortran 90 and later allow arithmetic operations on whole arrays, like so:
!Both arrays must be the same shape integer foo(37), doublefoo(37) doublefoo=foo*2
This is actually a highly useful feature as it reduces the need for looping (a common place for bugs to hide) and allows array operations to be distributed over multiple processors, if available.
In Pascal, the above might look something like this:
var foo, doublefoo: array[1..37] of integer; {...}
begin {...} doublefoo:=2*foo; {...} end.
--------------------------| John L. Ries | Salford Systems | Phone: (619)543-8880 x107 | or (435)867-8885 | --------------------------|