Intro
I'm working through chapter 15, "Iterators" in the Programming Rust book for this post.
Iterators produce sequences of values, and all kinds of things can be iterated over – strings, collection types, files, connections, database records, etc.
Rust iterators have a rich set of methods like fold()
, map()
, filter()
, reduce …