H (Hybrid) Language - v0.03, by Dr. Herong Yang
x[i] - Array Element Format for array.set()
This section describes the array element format x[i] for the array.set() function.
The array.set() function can be expressed in array element format, [i].
Examples of how to use array element format [i] as array.set() function:
[1, "Two", 3][1] = "2"; # The literal array updated to [1, "2", 3] y = array([1, "Two", 3]); y[1] = "2"; # The array of y updated to [1, "2", 3] y[-1] = "#"; # Gets the "IndexOutOfBound" error.
Table of Contents
array.get() - Retrieve Element from Array
x[i] - Array Element Format for array.get()
array.set() - Update Element of Array
►x[i] - Array Element Format for array.set()
array.subArray() - Sub-Array Function
Inheritance - Object Attachments