pub fn remove_capturing<T: Clone>(state: &[T], index: usize) -> RemoveOp<T>
Create a RemoveOp that captures the value at index for undo.
RemoveOp
index