Creating an Array: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
(Blanked page since people can't / don't read)
 
(307 intermediate revisions by 95 users not shown)
Line 1: Line 1:
{{task}}
{{DeprecatedTask}}
'''Please do not add new code, and merge existing code to the [[Arrays]] task.'''


This task is about numerically-indexed arrays. For '''hashes''' or '''associative arrays''', please see [[Creating an Associative Array]].
In this task, the goal is to create an [[array]].


In this task, the goal is to create an [[array]]. Mention if the [[array base]] begins at a number other than zero.
==[[mIRC]]==
In addition, demonstrate how to initialize an array variable with data.
'''Interpeter:''' mIRC Script Editor
'''Libraries:''' [[mArray Snippet]]
alias creatmearray { .echo -a $array_create(MyArray, 5, 10) }


{{array operation}}

==[[Visual Basic 2005.Net]]==
Dim myArray as new ArrayList

Dim myArray2 as new ArrayList = { "Item1", "Item2" }

==[[Javascript]]==
var myArray = new Array();

var myArray2 = new Array("Item1","Item2");

==[[3DS Max 8 - MaxScript]]==
myArray = #()

myArray2 = #("Item1", "Item2")

Latest revision as of 15:07, 29 November 2019

Creating an Array was a programming task. It has been deprecated for reasons that are discussed in its talk page.

Please do not add new code, and merge existing code to the Arrays task.

This task is about numerically-indexed arrays. For hashes or associative arrays, please see Creating an Associative Array.

In this task, the goal is to create an array. Mention if the array base begins at a number other than zero. In addition, demonstrate how to initialize an array variable with data.