array_i as an iterator