Iterators

  1. Iterate over vector of numbers
  2. Alternatively, we could create an iterator using the iter method.
  3. Count number of elements of an iterator
  4. Iterator: all the elements
  5. Iteration moves values
  6. Iterator that restarts
  7. Circular Iterator that restarts
  8. Create a simple iterator to count up to a number
  9. Create a simple iterator to count boundless
  10. Iterate over files in current directory
  11. Iterate over files in current directory calling next
  12. Iterator to walk directory tree
  13. Mutable iterator
  14. Take the first N elements of an iterator
  15. Skip the first N elements of an iterator
  16. Skip and take from an iterator
  17. Counting the number of iterations - count vs collect-len
  18. Exercise: Iterator for the Fibonacci series
  19. Solution: Iterator for the Fibonacci series
  20. Iter strings
  21. Non-circular iterators