Arrays Next Previous Contents 11. Arrays An array is a container object that can contain many values of one data type.
Arrays are very useful objects and are indispensable for certain types of programming.
The purpose of this chapter is to describe how arrays are defined and used in the S-Lang language. The current implementation permits arrays consist of up to 7 dimensions. When a numeric array is created, all its elements are initialized to zero. There is a more convenient syntax for creating and initializing a 1-d arrays. An even more compact way of specifying a numeric array is to use a range-array .