allow v to be a constant in y[x] = v