Append scalar to array

<< Click to Display Table of Contents >>

Navigation:  Basic concepts > Operators >

Append scalar to array

The <-- assignment can be used in place of a regular assignment operation and serves to append a scalar to an array of the same type. This mechanism works for integer, double, boolean, strings and MidiMessage types.

var

   s : integer array = [1,2,3]

Initialization

   s <-- 42   // Appends 42 to the end of the array

End