Use `mgetOrPut` (the name is a bit weird):
    
    
    import tables
    
    proc add*(t: var Table[string, seq[string]]; key, value: string) =
      t.mgetOrPut(key, @[]).add value
    
    
    
    Run

Reply via email to