Arrays have a variable-size, meaning they can shrink and grow. There is no tradional array, with a fixed capacity that is specified at allocation.
var array = {1, 2, 3, 4, 5};
Arrays can be concatenated like strings using the plus operator:
var firstArray = {1, 2, 3, 4, 5}; var secondArray = {6, 7, 8, 9, 10}; printf("{}\n", firstArray + secondArray);
There was an error while loading. Please reload this page.