"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

 About This Book

 Introduction of H Language

 Syntax

 Data Types

 Variables

 Expressions

 Statements

 "boolean" Data Type

 "integer" Data Type

 "string" Data Type

 "real" Data Type

"array" Data Type

 What Is "array" Data Type

"array" Literals

 Constructor Function: array()

 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" "add" Operation

 array.subArray() - Sub-Array Function

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

 Inheritance - Object Attachments

 Encapsulation - Private Members

 References

 Full Version in PDF/ePUB