string_set


string_set(s, i, c)
      

Change the ith element of the string s to the character c. Return void.

The index i must be an exact nonnegative integer less than the length of s.

Examples:


let s = "hello"
string_set(s, 1, \E)
s
// hEllo
      

Also see:

string_at
string_fill
make_string


Core Module Index | Contents