> Template wont need strict concrete types <https://play.nim-lang.org/#ix=2LsY>

Hmm, I still don't know how to use it to expand the tuple.

P.S.

But with the addition of untyped `to_seq` it helped me to make code below 
possible :)
    
    
    template to_seq*(list: seq[untyped], R): seq[typeof R] = R.init_seq(list)
    
    echo @[
      ("call", 120.0, 1.2), ("call", 120.0, 1.3), ("call", 120.0, 1.5),
      ("call", 160.0, 1.2), ("call", 160.0, 1.3), ("call", 160.0, 1.5)
    ].to_seq(OptionParams)
    
    
    Run

Reply via email to