Arrays are created by enclosing comma-delimited expressions in square brackets like so:
Arrays use zero-base indexing and can be referenced in the usual manner:
a = [1,4,3,6,5];
b = a // b = 4
Comments start with a double slash (//) and go to the end of the line. The examples in this appendix frequently use comments to show return values.
Note that array references work for arrays of any dimension. For example,
c is allowed (presuming
c is an array of arrays).
Operations on Arrays
There are a number of operators that work on arrays. In addition there is an array membership infix operator.