ReCT Documentation


Array datatypes

Arrays are a datatype which can hold multiple instances of it's base type.

For example, a string Array can hold multiple strings.

The name of an ArrayType is always the base type + 'Arr', so in case of a string array it would be "stringArr".

You can create an Array like this:

var someArray <- make string array(5);

The number in parentheses is setting the Length of the array.


The Array Datatypes have 2 built in Functions:


GetLength() returns the Array's length as an Int.

Push(object -> any)

Push() adds the given Object to the end of the Array.