Array
Array[f, n] generates a list of length n, with elements f[i].
Array[f, 
,
, ...
] generates an
array of nested lists, with elements f[
,
, ... ].
Array[f, 
,
, ...
, 
,
, ...
] generates a list using the index origins
(default 1).
Array[f, dims, origin, h] uses head h, rather than List, for each level of the array.
Examples: Array[f, 3]
.
Array[f,
2, 3
]
generates a
matrix.
Array[#1^#2 &,
2, 2
]
.
Array[f, 3, 0]
generates an array with the index starting at zero.
Array[f, 3, 1, Plus]
.
Note that the dimensions given to Array are not in standard Mathematica TE iterator notation.
See The Mathematica Book on the web: Section 1.8.3 and Section 2.2.6.
See also: Table.
Further Examples