Skip to main content

Array

The Array type represents a list of values. An array can contain any type of value, including other arrays. An array can be modified after it is created - elements can be added, removed or replaced.

let array = [123]
array.Push(456).Push(789) // array is now [123, 456, 789]
array[1] // read element 1: outputs 456
array[1] = 999 // replace element 1 with 999, array is now [123, 999, 789]