Arrays no longer modifier while iterated