Range.set

Sets an entry by its relative index. Applicable to ArrayRange only.

Arguments

The

value
to set.
index
is an integer number, zero-based. If the index is out of range, an error will occur.

Return values

None

Complexity

Constant

Example

"sl/arrayRange" useFile "sl/algorithm" useFile r: (1 2 10 50) range; -1 0 r.set r [print "," print TRUE] enum
Output:
-1,2,10,50,