Ohh, now i got it my bad, so the code should be:
    
    
    import tables, sugar, sequtils, strutils
    
    let l = @[
      {"one":1, "two":2, "three":3}.toOrderedTable,
      
      collect(OrderedTable, (
        for (i, j) in zip("sun mon tue wed".split(" "), (1..4).toSeq):
           {i:j}
      ))
    ];
    
    
    Run

Isn't it??

Reply via email to