Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ArrayAdd: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Tungocman (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:Collection_Functions]]
{{HelpFiles}}  
{{HelpFiles}}
= 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;''  


''number item = 1;''
''array a = {3, "2"};''  


''array a = {3, "2"};''
''arrayAdd(a, item);''  


''arrayAdd(a, item);''
''print(a);''  


''print(a);''
''}''  


''}''
'''Availability'''  


'''Availability'''
Version 4.8 __NOTOC__ <!-- imported from file: 453.htm-->


Version 4.8
[[Category:Collection_Functions]]
__NOTOC__
<!-- imported from file: 453.htm-->

Revision as of 08:30, 15 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);

}

Availability

Version 4.8