I hava an array with two types, which the odd index is always TypeA and the even index is always TypeB.
According to the description, the array always has even length, never have odd length.
The data structure of array must be so.
And this structure is from marijnh's orderedmap module.
// array
[A, B, A, B, A, B, ...]
// How to define it's type?