# Iterator that restarts

* next

* After consuming all the elements of the iterator it return `None`, but then it restarts and we can ask for the `next` element.

{% embed include file="src/examples/iterators/restarting/src/main.rs" %}
{% embed include file="src/examples/iterators/restarting/out.out" %}


