Functions Index :: A :: ArraySet
Module:
Definition:
ArraySet(string array, int index, val new_value)
Description:
Assigns new_value to the array element with index index and returns the resulting array.
This is the equivalent of the array[index] = value statement used in many programming languages, where valid indexes are in the range [0..ArrayLen(array)-1].
Examples:
a1 = "2.3,4,5,1.2,3"
a1 = a1.ArraySet(4, 12) # a1 == "2.3,4,5,1.2,12"
a1 = a1.ArraySet(1, 0.2) # a1 == "2.3,0.2,5,1.2,12"
$notes