Creating an Array

From Rosetta Code
Revision as of 15:45, 21 January 2007 by 24.36.191.85 (talk)
Task
Creating an Array
You are encouraged to solve this task according to the task description, using any language you may know.

In this task, the goal is to create an array.

mIRC

Interpeter: mIRC Script Editor Libraries: mArray Snippet

alias creatmearray { .echo -a $array_create(MyArray, 5, 10) }


Template: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")