Iterators
- Iterate over vector of numbers
- Alternatively, we could create an iterator using the iter method.
- Count number of elements of an iterator
- Iterator: all the elements
- Iteration moves values
- Iterator that restarts
- Circular Iterator that restarts
- Create a simple iterator to count up to a number
- Create a simple iterator to count boundless
- Iterate over files in current directory
- Iterate over files in current directory calling next
- Iterator to walk directory tree
- Mutable iterator
- Take the first N elements of an iterator
- Skip the first N elements of an iterator
- Skip and take from an iterator
- Counting the number of iterations - count vs collect-len
- Exercise: Iterator for the Fibonacci series
- Solution: Iterator for the Fibonacci series
- Iter strings
- Non-circular iterators