Difference between revisions of "Array"
Jump to navigation
Jump to search
(Please invent Array[]s) |
|||
Line 1: | Line 1: | ||
An array is a data structure consisting of a group of elements having a single name that are accessed by indexing. | |||
Example for a standard array : | |||
array EXAMPLE = ["apple" , "banana", "strawberry"]; | |||
here EXAMPLE[1] = "banana" | |||
Example for an associative array : | |||
array ASSOCIATIVE; | |||
ASSOCIATIVE["fruit"] = "apple"; | |||
ASSICIARIVE["beverage"] = "coffee"; | |||
ASSOCIATIVE["meat"] = "chicken"; | |||
Functions: | |||
{{LSLG|llForeach}} |
Revision as of 23:58, 26 July 2007
An array is a data structure consisting of a group of elements having a single name that are accessed by indexing.
Example for a standard array : array EXAMPLE = ["apple" , "banana", "strawberry"]; here EXAMPLE[1] = "banana"
Example for an associative array :
array ASSOCIATIVE; ASSOCIATIVE["fruit"] = "apple"; ASSICIARIVE["beverage"] = "coffee"; ASSOCIATIVE["meat"] = "chicken";
Functions:
llForeach