1 2 3 4 5 6 7 8 9 10 11
use std::iter; fn main() { let mut v = (0..20) .map(|_| iter::empty::<()>()) .collect::<Vec<_>>(); for i in 1..8 { v.remove(i + 1); } }