Array: Difference between revisions

2 bytes removed ,  16 years ago
m
no edit summary
(Multidimensional arrays added, operations on arrays added. Definitions extended and fixed)
mNo edit summary
Line 7:
Basic operations defined on arrays are:
* Indexing, accessing an array element by its tuple of indices;
* Slicing, producing a subarray by putting some constraint on the indices. For example, [[PL/1]] provides extracting of a rowsrow or a columnscolumn of an array. In [[Ada]] any range of the index can be used in order to extract a subarray from a single-dimensional array;
* Iteration of the arrays elements. Some languages have [[Loop/Foreach]] construct for array iteration;
* Querying the bounds of array indices;