Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Skip The First N Number Of Items In A Rust Iterator Loop

Use [TODO: Code shorthand span ] on an iterator to start at a place after the first item. For example :

rust
fn main() {
    let source = vec!["alfa", "bravo", "charlie", "delta"];
    source.iter().skip(2).for_each(|x| println!("{}", x));
}
results full

Jump ahead in a Rust loop