You can replace this with the built-in function ```iter```