Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: dstaceyPlease help me this must be really simple - I want to add items to a list and set items in a list. I thought append and setItem would solve all my problems. I tried this simple filter:
x = list(1,2,3)
setItem(x, 2, 6)
x.append(10)
y = x[2]
z = x[3]
emit y, z
I expected to get output y = 6 and z = 10 but I get index out of bounds when I try to call x[3] and x[2] never seems to get set to the new value.
Any help pointing me in the right direction would be much appreciated.
Dave