x[i] - Array Element Format for array.get()

This section describes the array element format x[i] for the array.get() function.

The array.get() function can be expressed in array element format, [i].

Examples of how to use array element format [i] as array.get() function:

[1, "Two", 3][1]; # Returns "Two"

y = array([1, "Two", 3]); 
y[1]; # Returns "Two"

y[3]; # Gets the "IndexOutOfBound" error.

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