You can index a
list via the index
. operator. The index operation applied on a
struct returns all the values of the pairs that have matching keys.
The index operation applied on a
list returns all the values that match the index.
The index value can be of any type, and is intersected with all the keys or indices to check whether they match.