For array, seq or table in Nim all elements must have same size and type. Same size because mapping of index to actual element position is done by multiplying size with index.
You may use ref object, as references are basically pointers and so all have same size, or you may use sum types, called object variants in Nim.
