Appends an item to the array after the last item (the item with the highest index). The return value is the index of newly added item. The append method is only valid with single-dimension arrays.
Example 5.134. Array class - append method
a = .array~of("Mike", "Rick")
a~append("Fred") -- a = .array~of("Mike", "Rick", "Fred")