use std::collections::{HashMap, VecDeque}; fn main() { let sample = [1; 5]; let indirect_iter = sample.iter().collect::>(); indirect_iter.into_iter().map(|x| (x, x + 1)).collect::>(); let indirect_len = sample.iter().collect::>(); indirect_len.len(); let indirect_empty = sample.iter().collect::>(); indirect_empty.is_empty(); let indirect_contains = sample.iter().collect::>(); indirect_contains.contains(&&5); let indirect_negative = sample.iter().collect::>(); indirect_negative.len(); indirect_negative .into_iter() .map(|x| (*x, *x + 1)) .collect::>(); }