Sorry, left out the hard part. I'm trying to rewrite *array element* assignment to list syntax. So the example should read something like x[1] = y[2] = z = a+1 translates to x.put(1, y.put(2, z=a+1)) Getting the array element reference back up the tree is what is (mainly) thwarting me.