Assigning Values to an Array: Difference between revisions
Content deleted Content added
tag obsolete (Arrays) and remove {header}s |
→Logo: rm |
||
Line 341: | Line 341: | ||
Simpler if you don't mind adding an element if it does not already exist: |
Simpler if you don't mind adding an element if it does not already exist: |
||
function writeToArray(array, loc, val) { array[loc] = val; } |
function writeToArray(array, loc, val) { array[loc] = val; } |
||
==[[Logo]]== |
|||
make "a {10 20 30} |
|||
setitem 1 :a "ten |
|||
==[[LSE64]]== |
==[[LSE64]]== |