For the collection types other than Set, you can use [] syntax to retrieve individual elements.

For Array and List, the [] operator takes the 0-based index of the element that you want. For Map, the [] operator takes the key of the element that you want.

Under the covers, [] maps to a get() function available on these types.

You can learn more about this in:
Run Expand Edit