Yes you need to put the value in the table before operating on it. 
`table[key][i] =` is not equal to `table[key] = @[]`. In the first case there 
is no sequence to index on, since there is no entry for the key. The following 
is a slightly more elegant method of doing this.
    
    
    if table.hasKeyOrPut(key, emptySeq):
        table["key1"][i] = 2*i
    
    
    Run

Reply via email to