Stepping through an iterator in regular intervals

Have you ever wanted to step through data by only looking at every nth item? On stable Rust, the best solution to this problem is using the third-party crate itertools (https://crates.io/crates/itertools), which brings you a whole lot of iterator goodies, or allows you to code the functionality yourself; however, you have a built-in step_by method doing exactly this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.96.155