Manipulating arrays

There are minor exceptions to the rule that any action on an array must be performed on each element of an array. Exceptions include:

Each of these exceptions will be covered later in the tutorial.

Nevertheless, these exceptions do not invalidate the principle that building an algorithm for an array requires the programmer to consider the elements in the array individually.

There are no constructs native to the syntax to manipulate arrays. This is in contrast to other languages which provide more autonomy to arrays, allowing you to easily do things such as copy them, print them, append to them, and subtract elements from them. Some go so far as to provide operators for arrays and matrices (APL, for example).

The moral of the story is: Whenever you operate on an array (particularly copying), your results will never be as expected unless every element in the array has been operated on.