MDSETITEMindexlist
mdarray
value
Replaces an item in a multi-dimensional array with a new value. The item to replace is selected by a list of indices.
MAKE "myarray (MDARRAY [2 3] 0)
MDSETITEM [0 0] :myarray 1
MDSETITEM [0 1] :myarray 2
MDSETITEM [0 2] :myarray 3
MDSETITEM [1 0] :myarray 4
MDSETITEM [1 1] :myarray 5
MDSETITEM [1 2] :myarray 6
SHOW :myarray
{{1 2 3} {4 5 6}}
MDARRAY |
MDITEM |
SETITEM |