seqs have value semantics, why would it not perform a copy?

you can override that with `.byaddr`, however: 
    
    
    import std/[tables,decls]
    
    var table: Table[string, seq[string]]
    
    table["a"] = @[]
    
    table["a"].add "1" # Updates table
    
    var list{.byaddr.} = table["a"]
    list.add "2"       # Updates the table
    
    echo table # ==> {"a": @["1","2"]}
    
    
    Run

Reply via email to