> Nope, T is a fixed generic type. It doesn't mean anything and it's definitely 
> not heterogeneous. It's not going to work like that, I tried it.

Let me emphasize what @mratsim mentioned, **" change T to be a variant or use 
polymorphism."**

And no, you hadn't tried it. Nothing in your example code showed variant object 
that would hold your values.

All you showed was trying to reinvent the 
[lists](https://nim-lang.org/docs/lists.html) stdlib. 

Reply via email to