. 
    
    
    import tables
    
    #constructs an array of tuples
    #{"key_1": "value_1", "key_2": "value_2"}
    
    proc `%`[T,G,H](a : array[T,(G,H)]) : Table[G,H] =
      a.toTable()
    
    var a = %{"key_1": "value_1", "key_2": "value_2"}
    
    
    Run

Reply via email to