Closely related to scalars are arrays, which are ordered collections of scalar values. All elements in an array have to be the same type:
Array elements can be accessed by giving an index (starting
with 0) enclosed in [
]
:
You can also cast arrays from one type to another by using a "nested" cast notation: