Array: Difference between revisions
Content deleted Content added
Multidimensional arrays added, operations on arrays added. Definitions extended and fixed |
mNo edit summary |
||
Line 7: | Line 7: | ||
Basic operations defined on arrays are: |
Basic operations defined on arrays are: |
||
* Indexing, accessing an array element by its tuple of indices; |
* 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 |
* Slicing, producing a subarray by putting some constraint on the indices. For example, [[PL/1]] provides extracting of a row or a column 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; |
* Iteration of the arrays elements. Some languages have [[Loop/Foreach]] construct for array iteration; |
||
* Querying the bounds of array indices; |
* Querying the bounds of array indices; |