ASET
Syntax ASET array number value 
ASET array list value
 
Explanation

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.
 

Examples MAKE "A ARRAY [2 2] 
ASET :A [1 0] "HELLO 
AGET :A [1 0] 
Result: HELLO 
MAKE "BA BYTEARRAY 5 
ASET "BA 1 255 
ASET "BA 2 "HELLO 
HELLO is not a number

TopIndex