Destructuring tuple



examples/tuples/destructuring-tuple/src/main.rs
fn main() {
    let things = (11, '2', String::from("three"), 19, 23);

    let (a, _, c, _, e) = &things; // deconstructing the tuple
    println!("{a}");
    println!("{c}");
    println!("{e}");
    println!();

    let (x, y) = (&things.2, &things.4);
    println!("{x}");
    println!("{y}");
}

11
three
23

three
23