"array" "add" Operation

This section describes 'array' 'add' operation

The "array" "add" operation is provided through the array.add() function, which has the following syntax:

array.add(a, b)

Parameters:
   a - First "array" data object
   b - Second "array" data object
   
Return: 
   Returns a new "array" data object representing 
   the concatenation of "a" and "b".

The "array" "add" operation can be expressed in the "+" operator format:

# alias of array "add" operation, if "a" and "b" are arrays
a + b; 
array.add(a, b); 

Another alias is supported too:

array.concatenate(a, b); # alias of the following function call
array.add(a, b); 

Last update: 2017.

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

 PDF Printing Version