Difference between revisions of "ArrayAdd"

From Catglobe Wiki
Jump to: navigation, search
(arrayAdd)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:CollectionFunctions ]]
+
= arrayAdd  =

 
  
====arrayAdd====
+
Inserts a new item into a specific array.
  
Inserts a new item into a specific array.
+
'''Syntax'''
  
'''Syntax'''
+
arrayAdd(array, item)
  
arrayAdd(array, item)
+
'''Arguments'''
  
'''Arguments'''
+
array: Is an array.
  
array: Is an array.
+
item: Is an expression of any data types defined.  
  
item: Is an expression of any data types defined.
+
'''Return type'''
  
'''Return type'''
+
empty
  
empty
+
'''Examples'''
  
'''Examples'''
+
''number item = 1;''  
  
''{''
+
''array a = {3, "2"};''  
  
''number item = 1;''
+
''arrayAdd(a, item);''  
  
''array a = {3, "2"};''
+
''print(a); // {3,2,1}''
  
''arrayAdd(a, item);''
+
'''Availability'''  
  
''print(a);''
+
Version 4.8 __NOTOC__ <!-- imported from file: 453.htm-->
  
''}''
+
[[Category:Collection_Functions]]
 
 
'''Availability'''
 
 
 
Version 4.8
 
__NOTOC__
 
<!-- imported from file: 453.htm-->
 

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