A.2.1.7 Lists

Lists are enclosed by brackets. The List elements need not to be of the same type, and are separated by commas, e.g.,

[1, 4, 9]                 // List with 3 elements
[1, "high", 5.0 kg]       // List with 3 elements

Lists may also be nested:

[[1, 2, 3],
 [4, 5, 6],
 [7, 8, 9]]               // 3x3 matrix
[[[ 1,  2,  3,  4],
  [ 5,  6,  7,  8],
  [ 9, 10, 11, 12]],
 [[13, 14, 15, 16],
  [17, 18, 19, 20],
  [21, 22, 23, 24]]]      // 4x3x2 matrix

Robert Klima 2003-02-06