- Rust Programming Cookbook
- Claus Matzinger
- 50字
- 2021-06-24 12:27:50
Filtering and transforming sequences efficiently
While in the previous recipe we discussed implementing a custom iterator, it's now time to make use of the functions they provide. Iterators can transform, filter, reduce, or simply convert the underlying elements in a single go, thereby making it a very efficient endeavor.