Difference between revisions of "ArrayAdd"

From Catglobe Wiki
Jump to: navigation, search
(arrayAdd)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{HelpFiles}}
+
= arrayAdd =
= arrayAdd =
 
  
 
Inserts a new item into a specific array.  
 
Inserts a new item into a specific array.  
Line 19: Line 18:
  
 
'''Examples'''  
 
'''Examples'''  
 
''{''
 
  
 
''number item = 1;''  
 
''number item = 1;''  
Line 28: Line 25:
 
''arrayAdd(a, item);''  
 
''arrayAdd(a, item);''  
  
''print(a);''
+
''print(a); // {3,2,1}''
 
 
''}''  
 
  
 
'''Availability'''  
 
'''Availability'''  

Latest revision as of 04:31, 20 December 2011

arrayAdd

Inserts a new item into a specific array.

Syntax

arrayAdd(array, item)

Arguments

array: Is an array.

item: Is an expression of any data types defined.

Return type

empty

Examples

number item = 1;

array a = {3, "2"};

arrayAdd(a, item);

print(a); // {3,2,1}

Availability

Version 4.8