∟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

 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