Rust has some really nice functional programming facilities built in, all
around an iterator concept. Rust being focused on performance and low level
control makes it possible to use this without paying a performance cost.
Sometimes I still prefer to use the humble for loop though. In quite a few
c…