APPEND
APPEND a, var1 [, var2 [, , varN]]
Inserts the values var1 to varN at the end
of the array a. var1 to varN can
be any data type.
Instead of APPEND the << Operator can be used.
Example 1: Append single number
a = [1,2,3]
print "Before APPEND: "; a
APPEND a, 4
print "After APPEND : "; a
' Output:
' Before APPEND: [1,2,3]
' After APPEND : [1,2,3,4]Example 2: Append multiple numbers
Example 3: Append an array
Example 4: Append a string
Example 5: Using << operator
Code samples using APPEND