H (Hybrid) Language - v0.03, by Dr. Herong Yang
x[i] - Array Element Format for string.set()
This section describes the array element format x[i] for the string.set() function.
The string.set() function can be expressed in array element format, [i].
Examples of how to use "string" array element format [i] as string.set() function:
"Hello world!"[1] = a; # The literal string updated to "Hallo world!" y = string("Hello world!"); y[11] = "?"; # The string of y updated to "Hello world?" y[12] = "#"; # Gets the "IndexOutOfBound" error.
Table of Contents
Escape Sequences in "string" Literals
Escape Sequences for Non-Printable ASCII Characters
Escape Sequences for Unicode Characters
String Literals with Line Breaks
String Literals Continuing on Next Lines
Expression Interpolation in String Literals
String Literals with No Escape Sequences
Constructor Function: string()
string.get() - Retrieve Character from String
x[i] - Array Element Format for string.get()
string.set() - Update Character to String
►x[i] - Array Element Format for string.set()
"string" "subtraction" Operation
"string" "multiplication" Operation
Inheritance - Object Attachments