setItem

HC Data Structure Primitives Mutators setItem
Mutators _setItem

setItem index thing value


command. Replaces the "index"th member of "array" with the new "value". SetItem Ensures that the resulting array is not circular, i.e., "value" may not be a list or array that contains "array".

Examples:

a=[H a l l o]
setItem 2 a "e
show a		;[H e l l o]

a={W o r l d}
setItem 3 a "a
show a		;{W o a l d}

a="hallo
setItem 2 a "e
show a		;hello

See also:

Examples:

References:

Mutators _setItem