I have a unique array structure where the odd index always contains elements of TypeA
and the even index always contains elements of TypeB
.
It is guaranteed that this array will always have an even length, never odd.
The data structure of this array must adhere to these rules.
This specific structure is implemented in marijnh's orderedmap module.
// array
[A, B, A, B, A, B, ...]
// How should the type be defined?