Iterators
We'll cover the following...
The engine powering for
loops under the hood is the Iterator
trait. Let’s think about what we want to do. Each time we step through the for
loop, we need to get the next item in a stream of values. We need some way ...