let v = vec![1, 2, 3]; let iter = v.iter().map(|x| { println!("处理 {}", x); x * 2 }); // 此时不会打印任何内容 for i in iter { println!("{}", i); } // 此时才会打印