Thank you for the reply, however this is not what I want. The template should 
not create a sequence, but produce some elements of a sequence. A better 
example of what I need is:
    
    
    var a: seq[int] = @[1, myTemplate(13), 2]
    assert(a == @[1, 13, 3, 2])
    
    
    Run

Reply via email to