Adding Elements
AddArraySlot(array, value)
AddArraySlot
appends a single element to the end of the array:
x := [15, "xyz", {a: 2, b: 3}]; AddArraySlot(x, 33);After the last line has executed,
x
has four elements, the last of which is 33
.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996