Thanks Flyx, your solution solves the task, but still unlikely able to generate 
(target) tuple of arbitrary size: for example, how would you write code to 
convert seq/array which consists out of 100 (or 1000 or 10M elements) ? You 
would have to write something like: 
    
    
    var myTuple: tuple[a00,a01,a02,a03,a05 ... a98,a99: int]
    fillTuple(myTuple, input_seq)
    

I hope I'm wrong and there is an elegant way to define a large tuple.

Does Nim able to construct/initialize tuple using an iterator/generator ?

Reply via email to