MDARRAY

Synopsis
MDARRAY sizelist
(MDARRAY sizelist origin)
Description

Outputs a multi-dimensional array. sizelist must be a list of one or more positive integers. origin, if present, must be a single integer that applies to every dimension of the array.

Example
MAKE "myarray (MDARRAY [2 3] 0)
MDSETITEM [0 0] :myarray 1
MDSETITEM [0 1] :myarray 2
MDSETITEM [0 2] :myarray 3
MDSETITEM [1 0] :myarray 4
MDSETITEM [1 1] :myarray 5
MDSETITEM [1 2] :myarray 6
SHOW :myarray
{{1 2 3} {4 5 6}}
See Also
MDITEM
MDSETITEM
ARRAY

SourceForge.net Logo