Append to an array within a range loop

Using = instead of := to update the solved it.