Assigning Values to an Array: Difference between revisions

Logo
(Logo)
Line 244:
Simpler if you don't mind adding an element if it does not already exist:
function writeToArray(array, loc, val) { array[loc] = val; }
 
=={{header|Logo}}==
make "a {10 20 30}
setitem 1 :a "ten
 
=={{header|LSE64}}==
Anonymous user