Yet Another Rust Iterators Tutorial


Hi all,

Just to let you know I wrote a Rust iterators tutorial in

Hope it’ll help newcomers.

Comments welcome !


I like it!

Consider, in the implementation section, mentioning a few of the optional methods that may also be useful to override, like nth and fold (see

A few code review nitpicks:

  • Consider deriving Debug on the iterator struct
  • Consider what Fibonacci should do on overflow, perhaps let next_fib = self.fib_n.checked_add(self.fib_n_1)?;