The Gambas interpreter offers you two types of native container classes.
A collection is a collection of items that are indexed using a key of the type string –> chapter 7.5 Collection. Only elements of the data type' Variant' can be stored in a collection. The values are stored internally in a hash table that grows dynamically when more elements are inserted into it.
An array is a set of elements that are indexed using an integer type key and stored in a memory block. All elements in an array have the same data type and there is an array class for each native data type.
Arrays can be one- and multi-dimensional. The elements of more than one integer value are then indexed. If an array has exactly one dimension, it can be dynamically reduced or expanded using the Resize () method.