See ReplaceIndexingWithIteration