-
Notifications
You must be signed in to change notification settings - Fork 1
Arrays
Frederik Tobner edited this page Dec 17, 2022
·
3 revisions
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);