string_at


string_at(s, n)
      

Return the nth element of string s, where 0 <= n < string_length(s).

Raise an error if s is not a string or if n is not a valid index.

Examples:


let s = "hello"
string_at(s, 1)
// \e

s[1]
// \e
      

Also see:

string_set
ref
strings_at


Core Module Index | Contents