# Alternatively, we could create an iterator using the iter method


* iter

{% embed include file="src/examples/iterators/iterator-over-vector-of-numbers-using-iter/src/main.rs" %}
{% embed include file="src/examples/iterators/iterator-over-vector-of-numbers-using-iter/out.out" %}


