for ((i, x) in foo.withIndices()) { }