ASET array number or list value
ASET stores a value into a specific element of an array or bytearray. ASET requires three inputs: the first input is the name of the array, the second input describes the array element where the value is to be stored, and the third input is the value itself.
For one-dimensional arrays, the second input must be a number. For multi-dimensional arrays, the second input is a list of numbers, where each number stands for one dimension.
Bytearrays accept numbers between 0 and 255 as values, while arrays accept any Logo object as values.
? MAKE "A ARRAY [2 2]
? ASET :A [1 0] "HELLO
? AGET :A [1 0]
? MAKE "BA BYTEARRAY 5
? ASET "BA 1 255
? ASET "BA 2 "HELLO
The procedure ASET does not like HELLO as its input.