Syntax
list replace( list X, int start, int end [, string s1, ...])
Description
The replace function deletes the elements between the start and end indices of the specified list and inserts the supplied strings in their place. If you do not specify any replacement string values, it replaces those elements with nothing; that is, it returns the list with the specified portion omitted.
Example
trustedusers={"jamie", "cory", "robyn"}; a=replace(trustedusers, 1, 1, "sandy"); print(a); // prints "{jamie, sandy, robyn}"