H (Hybrid) Language - v0.03, by Dr. Herong Yang
"array" Literals
This section describes 'array' literals
"array" literals are written in the following syntax:
[o1, o2, o3, ...] Where o1, o2, o3, are any data objects.
Examples of "array" literals are:
[]; # An empty array [1, 2, 3]; # An array of 3 integers ["One", "Two", "Three"]; # An array of 3 strings [1, "Two", 3]; # An array of integers and strings [1, $null, 3]; # An array with null elements [1, "Two", [1,1,1]]; # An array with arrays
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