Iterator for flip()