Slug: list-drain-01 · Paired reading: Chapter 18
Prompt
fn splice_out(items: &mut Vec<i32>, start: usize, end: usize) -> Vec<i32>
— remove items[start..end] via drain, return the removed values, leave
the rest contiguous. Panic-free when start <= end <= len.